From 5793157884660b00a8eef9050ffc511524062c3b Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Wed, 5 Jan 2005 17:59:08 +0000 Subject: [PATCH] small XMLFile cleanup svn path=/branches/xmlbuildsystem/; revision=12821 --- reactos/tools/rbuild/XML.cpp | 7 +------ reactos/tools/rbuild/XML.h | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/reactos/tools/rbuild/XML.cpp b/reactos/tools/rbuild/XML.cpp index 3935dd3bc3c..3f7cf7e0b5b 100644 --- a/reactos/tools/rbuild/XML.cpp +++ b/reactos/tools/rbuild/XML.cpp @@ -191,11 +191,6 @@ XMLFile::XMLFile() void XMLFile::close() { - while ( _f.size() ) - { - fclose ( _f.back() ); - _f.pop_back(); - } _buf.resize(0); _p = _end = NULL; } @@ -210,9 +205,9 @@ XMLFile::open(const string& filename) unsigned long len = (unsigned long)filelen(f); _buf.resize ( len ); fread ( &_buf[0], 1, len, f ); + fclose ( f ); _p = _buf.c_str(); _end = _p + len; - _f.push_back ( f ); next_token(); return true; } diff --git a/reactos/tools/rbuild/XML.h b/reactos/tools/rbuild/XML.h index f8fbd54609a..ff741927e58 100644 --- a/reactos/tools/rbuild/XML.h +++ b/reactos/tools/rbuild/XML.h @@ -36,7 +36,6 @@ public: bool get_token(std::string& token); private: - std::vector _f; std::string _buf; const char *_p, *_end;