]> git.sesse.net Git - vlc/commitdiff
skins2: remove unneeded code
authorErwan Tulou <erwan10@videolan.org>
Fri, 5 Apr 2013 13:16:13 +0000 (15:16 +0200)
committerErwan Tulou <erwan10@videolan.org>
Fri, 5 Apr 2013 17:14:33 +0000 (19:14 +0200)
modules/gui/skins2/controls/ctrl_slider.cpp
modules/gui/skins2/controls/ctrl_slider.hpp

index 89010ca47935158456e8f6c04daf2bcfdfb3b3fa..283c8ec3452da80728e2929a9850a3db3b63722e 100644 (file)
@@ -185,25 +185,6 @@ void CtrlSliderCursor::onResize()
 }
 
 
-void CtrlSliderCursor::notifyLayout( int width, int height, int xOffSet, int yOffSet )
-{
-    if( width > 0 && height > 0 )
-    {
-        CtrlGeneric::notifyLayout( width, height, xOffSet, yOffSet );
-    }
-    else
-    {
-        onPositionChange();
-
-        const Position *pPos = getPosition();
-        CtrlGeneric::notifyLayout( m_currentCursorRect.width,
-                                   m_currentCursorRect.height,
-                                   m_currentCursorRect.x - pPos->getLeft(),
-                                   m_currentCursorRect.y - pPos->getTop() );
-    }
-}
-
-
 void CtrlSliderCursor::onUpdate( Subject<VarPercent> &rVariable, void *arg  )
 {
     (void)rVariable; (void)arg;
index a828b8a91ea079f1eb072203761d84c8ddff56c4..573c7061ca35ab92a48226b6d199420b97aac766 100644 (file)
@@ -71,11 +71,6 @@ public:
     /// Method called when the control is resized
     virtual void onResize();
 
-    /// Method called to notify are to be updated
-    virtual void notifyLayout( int witdh = -1, int height = -1,
-                               int xOffSet = 0, int yOffSet = 0 );
-
-
     /// Get the text of the tooltip
     virtual UString getTooltipText() const { return m_tooltip; }