summaryrefslogtreecommitdiff
path: root/base/inifile.cc
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2005-01-18 15:48:38 -0500
committerKevin Lim <ktlim@umich.edu>2005-01-18 15:48:38 -0500
commitc389c2e327cc3ee1c988855b05505660c6670172 (patch)
tree7861dcb3ed07f03850ee922db9c0c33b038265e4 /base/inifile.cc
parent42f3b4ffb3fedcb70e9ff068ed7160dc6020b8c4 (diff)
parent25f54857c9356b7f8608be8d45fec17d6c26bce5 (diff)
downloadgem5-c389c2e327cc3ee1c988855b05505660c6670172.tar.xz
Merge zizzer.eecs.umich.edu:/bk/m5/
into zamp.eecs.umich.edu:/z/ktlim2/m5 --HG-- extra : convert_revision : c8b7f46e9d0dbff2a12a7375d361098fba352647
Diffstat (limited to 'base/inifile.cc')
-rw-r--r--base/inifile.cc41
1 files changed, 0 insertions, 41 deletions
diff --git a/base/inifile.cc b/base/inifile.cc
index 94b17966a..862e4082f 100644
--- a/base/inifile.cc
+++ b/base/inifile.cc
@@ -334,47 +334,6 @@ IniFile::find(const string &sectionName, const string &entryName,
}
bool
-IniFile::findDefault(const string &_section, const string &entry,
- string &value) const
-{
- string section = _section;
- while (!findAppend(section, entry, value)) {
- if (!find(section, "default", section)) {
- return false;
- }
- }
-
- return true;
-}
-
-bool
-IniFile::findAppend(const string &_section, const string &entry,
- string &value) const
-{
- string section = _section;
- bool ret = false;
- bool first = true;
-
- do {
- string val;
- if (find(section, entry, val)) {
- ret = true;
- if (first) {
- value = val;
- first = false;
- } else {
- value += " ";
- value += val;
- }
-
- }
- } while (find(section, "append", section));
-
- return ret;
-}
-
-
-bool
IniFile::sectionExists(const string &sectionName) const
{
return findSection(sectionName) != NULL;