[vlc-commits] skins2: remove unneeded code
Erwan Tulou
git at videolan.org
Fri Apr 5 19:16:01 CEST 2013
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Fri Apr 5 15:16:13 2013 +0200| [7382d170bbe8cfb763b996687710a12399f2e812] | committer: Erwan Tulou
skins2: remove unneeded code
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7382d170bbe8cfb763b996687710a12399f2e812
---
modules/gui/skins2/controls/ctrl_slider.cpp | 19 -------------------
modules/gui/skins2/controls/ctrl_slider.hpp | 5 -----
2 files changed, 24 deletions(-)
diff --git a/modules/gui/skins2/controls/ctrl_slider.cpp b/modules/gui/skins2/controls/ctrl_slider.cpp
index 89010ca..283c8ec 100644
--- a/modules/gui/skins2/controls/ctrl_slider.cpp
+++ b/modules/gui/skins2/controls/ctrl_slider.cpp
@@ -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;
diff --git a/modules/gui/skins2/controls/ctrl_slider.hpp b/modules/gui/skins2/controls/ctrl_slider.hpp
index a828b8a..573c706 100644
--- a/modules/gui/skins2/controls/ctrl_slider.hpp
+++ b/modules/gui/skins2/controls/ctrl_slider.hpp
@@ -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; }
More information about the vlc-commits
mailing list