diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-03-21 19:44:54 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-03-21 19:44:54 +0100 |
commit | daae61c202424e4870a1624c65236afb58ce2f35 (patch) | |
tree | 8b7b3ac9701fce545d8b2f0b71a44db4a133727c /src | |
parent | aab60ae119d170756bcba20c727ae1d045adbee0 (diff) |
Remove unused functions
Diffstat (limited to 'src')
-rw-r--r-- | src/ipc.c | 20 | ||||
-rw-r--r-- | src/menu.c | 45 |
2 files changed, 0 insertions, 65 deletions
@@ -76,23 +76,3 @@ void feh_ipc_cleanup(void) unlink(socket_name); free(socket_name); } - -static void feh_ipc_write_packet(int fd, void *data, int length) -{ - feh_ipc_server_header header; - header.version = FEH_IPC_VERSION; - header.data_length = length; - if (data && length > 0) { - write(fd, data, length); - } -} - -static void feh_ipc_write_int(int fd, int val) -{ - feh_ipc_write_packet(fd, &val, sizeof(int)); -} - -static void feh_ipc_write_string(int fd, char *string) -{ - feh_ipc_write_packet(fd, &string, string ? strlen(string) + 1 : 0); -} @@ -65,8 +65,6 @@ static void feh_menu_cb_sort_filename(feh_menu * m, feh_menu_item * i, void *dat static void feh_menu_cb_sort_imagename(feh_menu * m, feh_menu_item * i, void *data); static void feh_menu_cb_sort_filesize(feh_menu * m, feh_menu_item * i, void *data); static void feh_menu_cb_sort_randomize(feh_menu * m, feh_menu_item * i, void *data); -static void feh_menu_cb_jump_to(feh_menu * m, feh_menu_item * i, void *data); -static feh_menu *feh_menu_func_gen_jump(feh_menu * m, feh_menu_item * i, void *data); static feh_menu *feh_menu_func_gen_info(feh_menu * m, feh_menu_item * i, void *data); static void feh_menu_func_free_info(feh_menu * m, void *data); static void feh_menu_cb_save_image(feh_menu * m, feh_menu_item * i, void *data); @@ -1022,13 +1020,6 @@ void feh_menu_init_main(void) feh_menu_add_entry(menu_main, "File", NULL, "FILE", NULL, NULL, NULL); if (opt.slideshow || opt.multiwindow) { -#if 0 - feh_menu_item *mi; - - mi = feh_menu_add_entry(menu_main, "Jump to", NULL, "JUMP", NULL, NULL, NULL); - mi->func_gen_sub = feh_menu_func_gen_jump; -#endif - feh_menu_add_entry(menu_main, "Sort List", NULL, "SORT", NULL, NULL, NULL); mi = feh_menu_add_entry(menu_main, "Image Info", NULL, "INFO", NULL, NULL, NULL); mi->func_gen_sub = feh_menu_func_gen_info; @@ -1562,23 +1553,6 @@ static void feh_menu_cb_sort_randomize(feh_menu * m, feh_menu_item * i, void *da data = NULL; } -static feh_menu *feh_menu_func_gen_jump(feh_menu * m, feh_menu_item * i, void *data) -{ - feh_menu *mm; - gib_list *l; - - D_ENTER(4); - mm = feh_menu_new(); - mm->name = estrdup("JUMP"); - for (l = filelist; l; l = l->next) { - feh_menu_add_entry(mm, FEH_FILE(l->data)->name, NULL, NULL, feh_menu_cb_jump_to, l, NULL); - } - D_RETURN(4, mm); - m = NULL; - i = NULL; - data = NULL; -} - static feh_menu *feh_menu_func_gen_info(feh_menu * m, feh_menu_item * i, void *data) { Imlib_Image im; @@ -1657,25 +1631,6 @@ static void feh_menu_func_free_options(feh_menu * m, void *data) data = NULL; } -static void feh_menu_cb_jump_to(feh_menu * m, feh_menu_item * i, void *data) -{ - gib_list *l; - - D_ENTER(4); - l = (gib_list *) data; - if (l->prev) { - current_file = l->prev; - slideshow_change_image(m->fehwin, SLIDE_NEXT); - } else if (l->next) { - current_file = l->next; - slideshow_change_image(m->fehwin, SLIDE_PREV); - } - - D_RETURN_(4); - i = NULL; - m = NULL; -} - static void feh_menu_cb_fit(feh_menu * m, feh_menu_item * i, void *data) { D_ENTER(4); |