Skip to content
Snippets Groups Projects
Commit aa1efcc7 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #8968: config: removed unused methods

parent 6948d23b
No related branches found
No related tags found
No related merge requests found
......@@ -142,30 +142,6 @@ ConfigTree::getConfigTreeItemIntValue(const std::string& section, const std::str
return retval;
}
bool
ConfigTree::getConfigTreeItemBoolValue(const std::string& section, const std::string& itemName) const
{
return getConfigTreeItemValue(section, itemName) == "true";
}
bool
ConfigTree::getConfigTreeItemToken(const std::string& section, const std::string& itemName, std::list<std::string>& arg) const
{
const ConfigTreeItem *item = getConfigTreeItem(section, itemName);
if (item) {
arg.clear();
arg.push_back(section);
arg.push_back(itemName);
arg.push_back(item->getType());
arg.push_back(item->getValue());
arg.push_back(item->getDefaultValue());
return true;
}
else
return false;
}
/**
* Return a ConfigTreeItem or NULL if not found
*/
......
......@@ -130,15 +130,12 @@ class ConfigTree {
*/
std::string getConfigTreeItemValue(const std::string& section, const std::string& itemName) const;
int getConfigTreeItemIntValue(const std::string& section, const std::string& itemName) const;
bool getConfigTreeItemBoolValue(const std::string& section, const std::string& itemName) const;
/**
* Load data (and fill ConfigTree) from disk
*/
bool populateFromFile(const std::string& fileName);
bool getConfigTreeItemToken(const std::string& section, const std::string& itemName, std::list<std::string>& arg) const;
private:
std::string getDefaultValue(const std::string& key) const;
const ConfigTreeItem* getConfigTreeItem(const std::string& section, const std::string& itemName) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment