summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ipc.c20
-rw-r--r--src/menu.c45
2 files changed, 0 insertions, 65 deletions
diff --git a/src/ipc.c b/src/ipc.c
index a0d97a3..5299404 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -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);
-}
diff --git a/src/menu.c b/src/menu.c
index ed725bc..a422d5a 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -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);