Commit 06f2a64b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: remove useless intf-change object variable

parent b459e18d
......@@ -236,7 +236,6 @@ static int Open( vlc_object_t *p_this )
p_sys->p_playlist = p_playlist;
var_AddCallback( p_playlist, "input-current", AllCallback, p_intf );
var_AddCallback( p_playlist, "intf-change", AllCallback, p_intf );
var_AddCallback( p_playlist, "volume", AllCallback, p_intf );
var_AddCallback( p_playlist, "mute", AllCallback, p_intf );
var_AddCallback( p_playlist, "playlist-item-append", AllCallback, p_intf );
......@@ -298,7 +297,6 @@ static void Close ( vlc_object_t *p_this )
vlc_join( p_sys->thread, NULL );
var_DelCallback( p_playlist, "input-current", AllCallback, p_intf );
var_DelCallback( p_playlist, "intf-change", AllCallback, p_intf );
var_DelCallback( p_playlist, "volume", AllCallback, p_intf );
var_DelCallback( p_playlist, "mute", AllCallback, p_intf );
var_DelCallback( p_playlist, "playlist-item-append", AllCallback, p_intf );
......@@ -553,7 +551,6 @@ static void ProcessEvents( intf_thread_t *p_intf,
vlc_dictionary_insert( &player_properties, "Metadata", NULL );
break;
case SIGNAL_INTF_CHANGE:
case SIGNAL_PLAYLIST_ITEM_APPEND:
case SIGNAL_PLAYLIST_ITEM_DELETED:
{
......@@ -979,8 +976,6 @@ static int AllCallback( vlc_object_t *p_this, const char *psz_var,
if( oldval.b_bool != newval.b_bool )
info.signal = SIGNAL_VOLUME_MUTED;
}
else if( !strcmp( "intf-change", psz_var ) )
info.signal = SIGNAL_INTF_CHANGE;
else if( !strcmp( "playlist-item-append", psz_var ) )
info.signal = SIGNAL_PLAYLIST_ITEM_APPEND;
else if( !strcmp( "playlist-item-deleted", psz_var ) )
......
......@@ -113,7 +113,6 @@ enum
{
SIGNAL_NONE=0,
SIGNAL_ITEM_CURRENT,
SIGNAL_INTF_CHANGE,
SIGNAL_PLAYLIST_ITEM_APPEND,
SIGNAL_PLAYLIST_ITEM_DELETED,
SIGNAL_INPUT_METADATA,
......
......@@ -233,8 +233,6 @@ static VLCMain *sharedInstance = nil;
_mainWindowController = [[NSWindowController alloc] initWithWindowNibName:@"MainWindow"];
var_Create(p_intf, "intf-change", VLC_VAR_BOOL);
var_AddCallback(p_intf->obj.libvlc, "intf-toggle-fscontrol", ShowController, (__bridge void *)self);
var_AddCallback(p_intf->obj.libvlc, "intf-show", ShowController, (__bridge void *)self);
......
......@@ -378,7 +378,6 @@ FREENULL( psz_##foo );
playlist_t *p_playlist = pl_Get(getIntf());
input_item_WriteMeta(VLC_OBJECT(p_playlist), p_item);
var_SetBool(p_playlist, "intf-change", true);
[self updatePanelWithItem: p_item];
[_saveMetaDataButton setEnabled: NO];
......
......@@ -1783,7 +1783,6 @@ static void cleanup_run(void *data)
{
intf_thread_t *intf = data;
playlist_t *p_playlist = pl_Get(intf);
var_DelCallback(p_playlist, "intf-change", PlaylistChanged, intf);
var_DelCallback(p_playlist, "item-change", ItemChanged, intf);
var_DelCallback(p_playlist, "playlist-item-append", PlaylistChanged, intf);
}
......@@ -1797,7 +1796,6 @@ static void *Run(void *data)
intf_sys_t *sys = intf->p_sys;
playlist_t *p_playlist = pl_Get(intf);
var_AddCallback(p_playlist, "intf-change", PlaylistChanged, intf);
var_AddCallback(p_playlist, "item-change", ItemChanged, intf);
var_AddCallback(p_playlist, "playlist-item-append", PlaylistChanged, intf);
......
......@@ -412,9 +412,6 @@ void set_current_status_node( playlist_t * p_playlist,
static void VariablesInit( playlist_t *p_playlist )
{
/* These variables control updates */
var_Create( p_playlist, "intf-change", VLC_VAR_BOOL );
var_SetBool( p_playlist, "intf-change", true );
var_Create( p_playlist, "item-change", VLC_VAR_ADDRESS );
var_Create( p_playlist, "leaf-to-parent", VLC_VAR_INTEGER );
......
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