Mercurial > mplayer.hg
changeset 21765:68a43757356d
remove two unused functions.
author | vayne |
---|---|
date | Thu, 28 Dec 2006 15:36:54 +0000 |
parents | 309992959801 |
children | d380216661af |
files | Gui/win32/interface.c |
diffstat | 1 files changed, 0 insertions(+), 67 deletions(-) [+] |
line wrap: on
line diff
--- 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) {