Commit 6b8d2191 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Interaction: logically dead code

parent c00b6cab
...@@ -502,29 +502,15 @@ static int DialogSend( vlc_object_t *p_this, interaction_dialog_t *p_dialog ) ...@@ -502,29 +502,15 @@ static int DialogSend( vlc_object_t *p_this, interaction_dialog_t *p_dialog )
p_dialog->i_flags & DIALOG_BLOCKING_ERROR || p_dialog->i_flags & DIALOG_BLOCKING_ERROR ||
p_dialog->i_flags & DIALOG_NONBLOCKING_ERROR ) p_dialog->i_flags & DIALOG_NONBLOCKING_ERROR )
{ {
bool b_found = false;
int i;
p_dialog->p_interaction = p_interaction; p_dialog->p_interaction = p_interaction;
p_dialog->p_parent = p_this; p_dialog->p_parent = p_this;
/* Check if we have already added this dialog */ /* Check if we have already added this dialog */
vlc_object_lock( p_interaction ); vlc_object_lock( p_interaction );
for( i = 0 ; i< p_interaction->i_dialogs; i++ )
{
if( p_interaction->pp_dialogs[i] == p_dialog )
b_found = true;
}
/* Add it to the queue, the main loop will send the orders to the /* Add it to the queue, the main loop will send the orders to the
* interface */ * interface */
if( ! b_found ) INSERT_ELEM( p_interaction->pp_dialogs, p_interaction->i_dialogs,
{ p_interaction->i_dialogs, p_dialog );
INSERT_ELEM( p_interaction->pp_dialogs,
p_interaction->i_dialogs,
p_interaction->i_dialogs,
p_dialog );
}
else
p_dialog->i_status = UPDATED_DIALOG;
if( p_dialog->i_type == INTERACT_DIALOG_TWOWAY ) /* Wait for answer */ if( p_dialog->i_type == INTERACT_DIALOG_TWOWAY ) /* Wait for answer */
{ {
......
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