Browse Source

Remove dead code in Settings

Tobias Hieta 9 years ago
parent
commit
12ce116302
2 changed files with 1 additions and 11 deletions
  1. 1 4
      src/settings/SettingsComponent.h
  2. 0 7
      src/settings/SettingsValue.h

+ 1 - 4
src/settings/SettingsComponent.h

@@ -39,10 +39,7 @@ public:
 
   SettingsSection* getSection(const QString& sectionID)
   {
-    if (m_sections.contains(sectionID))
-      return m_sections.value(sectionID);
-    else
-      return nullptr;
+    return m_sections.value(sectionID, nullptr);
   }
 
   // JS interface

+ 0 - 7
src/settings/SettingsValue.h

@@ -96,13 +96,6 @@ public:
     m_possibleValues << entry;
   }
 
-  void addNumericRange(double min, double max, double step = 1.0)
-  {
-    QVariantList values;
-    for (double v = min; v <= max; v += step)
-      addPossibleValue(QString::number(v), v);
-  }
-
   // goes back to use the default
   void reset()
   {