diff options
| author | Rachel Bryk <RachelBryk@gmail.com> | 2014-09-04 03:29:49 -0400 |
|---|---|---|
| committer | Rachel Bryk <RachelBryk@gmail.com> | 2014-09-04 03:29:49 -0400 |
| commit | 345b608d64814224a1b9dff57d7deb6a855a7d34 (patch) | |
| tree | 356fb4d5f4e0ffbe587244274d73c94c90f9da37 /Source/Core/Common/IniFile.cpp | |
| parent | 46c18aa909a51bed885babf65e4ec15eae2865fd (diff) | |
Change IniFile::Section::Set() with default value to use a template.
Diffstat (limited to 'Source/Core/Common/IniFile.cpp')
| -rw-r--r-- | Source/Core/Common/IniFile.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp index f3ea5751ba..dda5e1ff0e 100644 --- a/Source/Core/Common/IniFile.cpp +++ b/Source/Core/Common/IniFile.cpp @@ -60,30 +60,6 @@ void IniFile::Section::Set(const std::string& key, const std::string& newValue, Delete(key); } -void IniFile::Section::Set(const std::string& key, const float newValue, const float defaultValue) -{ - if (newValue != defaultValue) - Set(key, newValue); - else - Delete(key); -} - -void IniFile::Section::Set(const std::string& key, int newValue, int defaultValue) -{ - if (newValue != defaultValue) - Set(key, newValue); - else - Delete(key); -} - -void IniFile::Section::Set(const std::string& key, bool newValue, bool defaultValue) -{ - if (newValue != defaultValue) - Set(key, newValue); - else - Delete(key); -} - void IniFile::Section::Set(const std::string& key, const std::vector<std::string>& newValues) { std::string temp; |
