# HG changeset patch # User vayne # Date 1167320214 0 # Node ID 68a43757356dcd47d57ab80dbc9af22844773d62 # Parent 30999295980183868cd0e1cbdceb2f42acd01f07 remove two unused functions. diff -r 309992959801 -r 68a43757356d Gui/win32/interface.c --- a/Gui/win32/interface.c Thu Dec 28 15:31:48 2006 +0000 +++ b/Gui/win32/interface.c Thu Dec 28 15:36:54 2006 +0000 @@ -480,73 +480,6 @@ cfg_write(); } -static void add_vf(char * str) -{ - mp_msg(MSGT_GPLAYER, MSGL_STATUS, MSGTR_AddingVideoFilter, str); - if (vf_settings) - { - int i = 0; - while (vf_settings[i].name) - if (!strcmp(vf_settings[i++].name, str)) - { - i = -1; - break; - } - if (i != -1) - { - vf_settings = realloc(vf_settings, (i + 2) * sizeof(m_obj_settings_t)); - vf_settings[i].name = strdup(str); - vf_settings[i].attribs = NULL; - vf_settings[i + 1].name = NULL; - } - } - else - { - vf_settings = malloc(2 * sizeof(m_obj_settings_t)); - vf_settings[0].name = strdup(str); - vf_settings[0].attribs = NULL; - vf_settings[1].name = NULL; - } -} - -static void remove_vf(char * str) -{ - int n = 0; - if (!vf_settings ) return; - - mp_msg(MSGT_GPLAYER,MSGL_STATUS, MSGTR_RemovingVideoFilter, str); - - while (vf_settings[n++].name); - n--; - if ( n > -1 ) - { - int i = 0, m = -1; - while (vf_settings[i].name) - if (!strcmp(vf_settings[i++].name, str)) - { - m = i - 1; - break; - } - i--; - if (m > -1) - { - if (n == 1) - { - free(vf_settings[0].name); - free(vf_settings[0].attribs); - free(vf_settings); - vf_settings=NULL; - } - else - { - free(vf_settings[i].name); - free(vf_settings[i].attribs); - memcpy(&vf_settings[i], &vf_settings[i + 1], (n - i) * sizeof(m_obj_settings_t)); - } - } - } -} - /* this function gets called by mplayer to update the gui */ int guiGetEvent(int type, char *arg) {