From 435ab8123a479a53ed5ad9384ca3e049ecb337e9 Mon Sep 17 00:00:00 2001 From: spx Date: Mon, 24 Jan 2011 10:43:03 +0000 Subject: [PATCH] Code cleanup. --- Library/ConfigParser.cpp | 11 ----------- Library/ConfigParser.h | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/Library/ConfigParser.cpp b/Library/ConfigParser.cpp index 15f3ba45..e47852f8 100644 --- a/Library/ConfigParser.cpp +++ b/Library/ConfigParser.cpp @@ -1224,17 +1224,6 @@ const std::wstring& CConfigParser::GetValue(const std::wstring& strSection, cons return strDefault; } -//============================================================================== -/** -** Returns the list of sections in the ini file. -** -** \return A list of sections in the ini file. -*/ -const std::vector& CConfigParser::GetSections() -{ - return m_Sections; -} - //============================================================================== /** ** Returns a list of keys under the given section. diff --git a/Library/ConfigParser.h b/Library/ConfigParser.h index 663ca4a5..7e08e62f 100644 --- a/Library/ConfigParser.h +++ b/Library/ConfigParser.h @@ -68,7 +68,7 @@ public: std::vector ReadFloats(LPCTSTR section, LPCTSTR key); const std::wstring& GetFilename() { return m_Filename; } - const std::vector& GetSections(); + const std::vector& GetSections() { return m_Sections; } // Returns an int if the formula was read successfully, -1 for failure. int ReadFormula(const std::wstring& result, double* number);