mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 12:39:55 +00:00
remove no longer used method
This commit is contained in:
parent
525f8b4d8e
commit
e804c4a011
@ -401,18 +401,6 @@ int Manager::getInt (const std::string& setting, const std::string& category)
|
|||||||
return parseInt( getString(setting, category) );
|
return parseInt( getString(setting, category) );
|
||||||
}
|
}
|
||||||
|
|
||||||
int Manager::tryGetInt (const std::string &setting, const std::string& category, int defaultValue)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
return getInt(setting,category);
|
|
||||||
}
|
|
||||||
catch (std::runtime_error)
|
|
||||||
{
|
|
||||||
return defaultValue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Manager::getBool (const std::string& setting, const std::string& category)
|
bool Manager::getBool (const std::string& setting, const std::string& category)
|
||||||
{
|
{
|
||||||
return parseBool( getString(setting, category) );
|
return parseBool( getString(setting, category) );
|
||||||
|
@ -39,7 +39,6 @@ namespace Settings
|
|||||||
///< returns the list of changed settings and then clears it
|
///< returns the list of changed settings and then clears it
|
||||||
|
|
||||||
static int getInt (const std::string& setting, const std::string& category);
|
static int getInt (const std::string& setting, const std::string& category);
|
||||||
static int tryGetInt (const std::string &setting, const std::string& category, int defaultValue);
|
|
||||||
static float getFloat (const std::string& setting, const std::string& category);
|
static float getFloat (const std::string& setting, const std::string& category);
|
||||||
static std::string getString (const std::string& setting, const std::string& category);
|
static std::string getString (const std::string& setting, const std::string& category);
|
||||||
static bool getBool (const std::string& setting, const std::string& category);
|
static bool getBool (const std::string& setting, const std::string& category);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user