From e804c4a011f1e6a1a1d14a39ddb4e48f981e3c73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sat, 11 Nov 2017 13:54:14 +0100 Subject: [PATCH] remove no longer used method --- components/settings/settings.cpp | 12 ------------ components/settings/settings.hpp | 1 - 2 files changed, 13 deletions(-) diff --git a/components/settings/settings.cpp b/components/settings/settings.cpp index 4e250974a..e93642ee2 100644 --- a/components/settings/settings.cpp +++ b/components/settings/settings.cpp @@ -401,18 +401,6 @@ int Manager::getInt (const std::string& setting, const std::string& 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) { return parseBool( getString(setting, category) ); diff --git a/components/settings/settings.hpp b/components/settings/settings.hpp index 9e80c21a6..7adcb9b39 100644 --- a/components/settings/settings.hpp +++ b/components/settings/settings.hpp @@ -39,7 +39,6 @@ namespace Settings ///< returns the list of changed settings and then clears it 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 std::string getString (const std::string& setting, const std::string& category); static bool getBool (const std::string& setting, const std::string& category);