Commit 2b0e83c3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt: remove dead SD mapper and menu code

parent 9aaa9f7f
......@@ -85,9 +85,6 @@ DialogsProvider::DialogsProvider( intf_thread_t *_p_intf ) :
CONNECT( menusUpdateMapper, mapped(QObject *),
this, menuUpdateAction( QObject *) );
SDMapper = new QSignalMapper();
CONNECT( SDMapper, mapped (QString), this, SDMenuAction( QString ) );
new DialogHandler (p_intf, this );
}
......@@ -106,7 +103,6 @@ DialogsProvider::~DialogsProvider()
delete menusMapper;
delete menusUpdateMapper;
delete SDMapper;
delete popupMenu;
delete videoPopupMenu;
......@@ -822,14 +818,6 @@ void DialogsProvider::menuUpdateAction( QObject *data )
func->doFunc( p_intf );
}
void DialogsProvider::SDMenuAction( const QString& data )
{
if( !playlist_IsServicesDiscoveryLoaded( THEPL, qtu( data ) ) )
playlist_ServicesDiscoveryAdd( THEPL, qtu( data ) );
else
playlist_ServicesDiscoveryRemove( THEPL, qtu( data ) );
}
void DialogsProvider::sendKey( int key )
{
// translate from a vlc keycode into a Qt sequence
......
......@@ -95,7 +95,6 @@ public:
protected:
QSignalMapper *menusMapper;
QSignalMapper *menusUpdateMapper;
QSignalMapper *SDMapper;
void customEvent( QEvent *);
private:
......@@ -175,7 +174,6 @@ public slots:
private slots:
void menuAction( QObject *);
void menuUpdateAction( QObject * );
void SDMenuAction( const QString& );
signals:
void toolBarConfUpdated();
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment