[vlc-devel] commit: Qt4: remove dead code ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat May 16 19:27:53 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 16 18:42:48 2009 +0300| [ea9c21f430fdedd962ba18467fabdd69df918027] | committer: Rémi Denis-Courmont 

Qt4: remove dead code

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

 .../gui/qt4/components/playlist/playlist_model.cpp |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 5910ce2..4da1f97 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -49,8 +49,6 @@ static int PlaylistChanged( vlc_object_t *, const char *,
                             vlc_value_t, vlc_value_t, void * );
 static int PlaylistNext( vlc_object_t *, const char *,
                          vlc_value_t, vlc_value_t, void * );
-static int ItemChanged( vlc_object_t *, const char *,
-                        vlc_value_t, vlc_value_t, void * );
 static int ItemAppended( vlc_object_t *p_this, const char *psz_variable,
                          vlc_value_t oval, vlc_value_t nval, void *param );
 static int ItemDeleted( vlc_object_t *p_this, const char *psz_variable,
@@ -234,7 +232,6 @@ void PLModel::addCallbacks()
 
 void PLModel::delCallbacks()
 {
-    var_DelCallback( p_playlist, "item-change", ItemChanged, this );
     /*
     var_DelCallback( p_playlist, "item-current", PlaylistNext, this );
     */
@@ -959,15 +956,6 @@ static int PlaylistNext( vlc_object_t *p_this, const char *psz_variable,
     return VLC_SUCCESS;
 }
 
-static int ItemChanged( vlc_object_t *p_this, const char *psz_variable,
-                        vlc_value_t oval, vlc_value_t nval, void *param )
-{
-    PLModel *p_model = (PLModel *) param;
-    PLEvent *event = new PLEvent( ItemUpdate_Type, nval.i_int );
-    QApplication::postEvent( p_model, event );
-    return VLC_SUCCESS;
-}
-
 static int ItemDeleted( vlc_object_t *p_this, const char *psz_variable,
                         vlc_value_t oval, vlc_value_t nval, void *param )
 {




More information about the vlc-devel mailing list