skins2: remove unneeded code (already inherited from base class)
authorErwan Tulou <erwan10@videolan.org>
Sat, 27 Jun 2009 05:35:06 +0000 (07:35 +0200)
committerErwan Tulou <erwan10@videolan.org>
Sun, 28 Jun 2009 19:39:49 +0000 (21:39 +0200)
modules/gui/skins2/controls/ctrl_video.cpp

index f8083d3..ee7b883 100644 (file)
@@ -45,10 +45,6 @@ CtrlVideo::CtrlVideo( intf_thread_t *pIntf, GenericLayout &rLayout,
         VarBox &rVoutSize = VlcProc::instance( pIntf )->getVoutSizeVar();
         rVoutSize.addObserver( this );
     }
-
-    // observe visibility variable
-    if( m_pVisible )
-        m_pVisible->addObserver( this );
 }
 
 
@@ -58,9 +54,6 @@ CtrlVideo::~CtrlVideo()
     rVoutSize.delObserver( this );
 
     //m_pLayout->getActiveVar().delObserver( this );
-
-    if( m_pVisible )
-        m_pVisible->delObserver( this );
 }