diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-06-16 01:12:43 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-06-16 01:31:23 -0400 |
| commit | f05d3f6e5d6da8be530c0cd4ffaaec0382240ec5 (patch) | |
| tree | c598524e0e7b77b3345bc4a8158ceb9421a18e32 /Source/Core/Common/IniFile.cpp | |
| parent | 7416b9cdb474f2b4b6808688fb23d335a623dd30 (diff) | |
Use only section-based ini reading.
Diffstat (limited to 'Source/Core/Common/IniFile.cpp')
| -rw-r--r-- | Source/Core/Common/IniFile.cpp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp index 642835ac90..6159c2897d 100644 --- a/Source/Core/Common/IniFile.cpp +++ b/Source/Core/Common/IniFile.cpp @@ -436,61 +436,6 @@ bool IniFile::Save(const std::string& filename) return File::RenameSync(temp, filename); } -bool IniFile::Get(const std::string& sectionName, const std::string& key, std::vector<std::string>* values) -{ - Section *section = GetSection(sectionName); - if (!section) - return false; - return section->Get(key, values); -} - -bool IniFile::Get(const std::string& sectionName, const std::string& key, int* value, int defaultValue) -{ - Section *section = GetSection(sectionName); - if (!section) { - *value = defaultValue; - return false; - } else { - return section->Get(key, value, defaultValue); - } -} - -bool IniFile::Get(const std::string& sectionName, const std::string& key, u32* value, u32 defaultValue) -{ - Section *section = GetSection(sectionName); - if (!section) { - *value = defaultValue; - return false; - } else { - return section->Get(key, value, defaultValue); - } -} - -bool IniFile::Get(const std::string& sectionName, const std::string& key, bool* value, bool defaultValue) -{ - Section *section = GetSection(sectionName); - if (!section) { - *value = defaultValue; - return false; - } else { - return section->Get(key, value, defaultValue); - } -} - -bool IniFile::Get(const std::string& sectionName, const std::string& key, std::string* value, const std::string& defaultValue) -{ - Section* section = GetSection(sectionName); - if (!section) { - if (&defaultValue != &NULL_STRING) { - *value = defaultValue; - } - return false; - } - return section->Get(key, value, defaultValue); -} - - - // Unit test. TODO: Move to the real unit test framework. /* int main() |
