Skip to content
This repository
Browse code

CGUIWindowSettingsCategory: remove unused m_currentSettings member va…

…riable
  • Loading branch information...
commit 3c469dccc5dcbb0c5d9a175432eea0e3052e302d 1 parent 86b587b
Sascha Montellese authored May 15, 2013
5  xbmc/settings/windows/GUIWindowSettingsCategory.cpp
@@ -122,7 +122,6 @@ bool CGUIWindowSettingsCategory::OnMessage(CGUIMessage &message)
122 122
     case GUI_MSG_WINDOW_INIT:
123 123
     {
124 124
       m_delayedSetting.reset();
125  
-      m_currentSetting.reset();
126 125
       if (message.GetParam1() != WINDOW_INVALID && !m_returningFromSkinLoad)
127 126
       { // coming to this window first time (ie not returning back from some other window)
128 127
         // so we reset our section and control states
@@ -179,8 +178,6 @@ bool CGUIWindowSettingsCategory::OnMessage(CGUIMessage &message)
179 178
           m_iCategory = focusedControl - CONTROL_START_BUTTONS;
180 179
           CreateSettings();
181 180
         }
182  
-        else if (focusedControl >= CONTROL_START_CONTROL && focusedControl < (int)(CONTROL_START_CONTROL + m_settingControls.size()))
183  
-          m_currentSetting = GetSettingControl(focusedControl);
184 181
       }
185 182
       return true;
186 183
     }
@@ -480,8 +477,6 @@ void CGUIWindowSettingsCategory::FreeControls()
480 477
 
481 478
 void CGUIWindowSettingsCategory::FreeSettingsControls()
482 479
 {
483  
-  m_currentSetting.reset();
484  
-
485 480
   // clear the settings group
486 481
   CGUIControlGroupList *control = (CGUIControlGroupList *)GetControl(SETTINGS_GROUP_ID);
487 482
   if (control)
1  xbmc/settings/windows/GUIWindowSettingsCategory.h
@@ -100,7 +100,6 @@ class CGUIWindowSettingsCategory
100 100
   CGUIImage *m_pOriginalImage;
101 101
   bool newOriginalEdit;
102 102
   
103  
-  BaseSettingControlPtr m_currentSetting; ///< Current setting control
104 103
   BaseSettingControlPtr m_delayedSetting; ///< Current delayed setting \sa CBaseSettingControl::SetDelayed()
105 104
   CTimer m_delayedTimer;                  ///< Delayed setting timer
106 105
 

0 notes on commit 3c469dc

Please sign in to comment.
Something went wrong with that request. Please try again.