[vlc-commits] gui/qt: interface_widgets: remove legacy code

Filip Roséen git at videolan.org
Mon Mar 20 13:53:06 CET 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Mon Mar 20 13:41:51 2017 +0100| [79cc1a03b5213707d2996e27dd37132fed51d9c0] | committer: Hugo Beauzée-Luyssen

gui/qt: interface_widgets: remove legacy code

The affected sections were disabled (wrapped in "#if 0") by
098dab901c1 back in July 2008 and has been untouched ever since.

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=79cc1a03b5213707d2996e27dd37132fed51d9c0
---

 modules/gui/qt/components/interface_widgets.cpp | 54 -------------------------
 modules/gui/qt/components/interface_widgets.hpp | 16 --------
 2 files changed, 70 deletions(-)

diff --git a/modules/gui/qt/components/interface_widgets.cpp b/modules/gui/qt/components/interface_widgets.cpp
index 4f1deee..6602682 100644
--- a/modules/gui/qt/components/interface_widgets.cpp
+++ b/modules/gui/qt/components/interface_widgets.cpp
@@ -568,60 +568,6 @@ void EasterEggBackgroundWidget::paintEvent( QPaintEvent *e )
     BackgroundWidget::paintEvent( e );
 }
 
-#if 0
-#include <QPushButton>
-#include <QHBoxLayout>
-
-/**********************************************************************
- * Visualization selector panel
- **********************************************************************/
-VisualSelector::VisualSelector( intf_thread_t *_p_i ) :
-                                QFrame( NULL ), p_intf( _p_i )
-{
-    QHBoxLayout *layout = new QHBoxLayout( this );
-    layout->setMargin( 0 );
-    QPushButton *prevButton = new QPushButton( "Prev" );
-    QPushButton *nextButton = new QPushButton( "Next" );
-    layout->addWidget( prevButton );
-    layout->addWidget( nextButton );
-
-    layout->addStretch( 10 );
-    layout->addWidget( new QLabel( qtr( "Current visualization" ) ) );
-
-    current = new QLabel( qtr( "None" ) );
-    layout->addWidget( current );
-
-    BUTTONACT( prevButton, prev() );
-    BUTTONACT( nextButton, next() );
-
-    setLayout( layout );
-    setMaximumHeight( 35 );
-}
-
-VisualSelector::~VisualSelector()
-{}
-
-void VisualSelector::prev()
-{
-    char *psz_new = aout_VisualPrev( p_intf );
-    if( psz_new )
-    {
-        current->setText( qfu( psz_new ) );
-        free( psz_new );
-    }
-}
-
-void VisualSelector::next()
-{
-    char *psz_new = aout_VisualNext( p_intf );
-    if( psz_new )
-    {
-        current->setText( qfu( psz_new ) );
-        free( psz_new );
-    }
-}
-#endif
-
 SpeedLabel::SpeedLabel( intf_thread_t *_p_intf, QWidget *parent )
            : QLabel( parent ), p_intf( _p_intf )
 {
diff --git a/modules/gui/qt/components/interface_widgets.hpp b/modules/gui/qt/components/interface_widgets.hpp
index 9d084a9..4036300 100644
--- a/modules/gui/qt/components/interface_widgets.hpp
+++ b/modules/gui/qt/components/interface_widgets.hpp
@@ -153,22 +153,6 @@ private:
     static const int MAX_FLAKES = 1000;
 };
 
-#if 0
-class VisualSelector : public QFrame
-{
-    Q_OBJECT
-public:
-    VisualSelector( intf_thread_t *);
-    virtual ~VisualSelector();
-private:
-    intf_thread_t *p_intf;
-    QLabel *current;
-private slots:
-    void prev();
-    void next();
-};
-#endif
-
 class ClickableQLabel : public QLabel
 {
     Q_OBJECT



More information about the vlc-commits mailing list