From e5ada13ba5c8eb6ba8bbdddb106493cd6531ee44 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sun, 24 Feb 2013 00:38:05 +0100 Subject: [PATCH] Removed redundant and no more needed code. --- src/hints.c | 3 --- src/main.c | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/hints.c b/src/hints.c index 704ec19..c90ad50 100644 --- a/src/hints.c +++ b/src/hints.c @@ -406,13 +406,10 @@ static void hints_process_fired_hint(guint mode, const char* uri) break; case HINTS_PROCESS_YANK: - /* TODO not implemented */ a.i = COMMAND_YANK_PRIMARY | COMMAND_YANK_SECONDARY; a.s = g_strdup(uri); command_yank(&a); g_free(a.s); - /* TODO add a command that do the mode switching instead */ - vp_set_mode(VP_MODE_NORMAL, FALSE); break; } } diff --git a/src/main.c b/src/main.c index 2bb47a7..05098e2 100644 --- a/src/main.c +++ b/src/main.c @@ -391,10 +391,6 @@ void vp_clean_up(void) g_file_set_contents(vp.files[FILES_CLOSED], uri, -1, NULL); } - if (vp.behave.commands) { - g_hash_table_destroy(vp.behave.commands); - vp.behave.commands = NULL; - } for (int i = FILES_FIRST; i < FILES_LAST; i++) { g_free(vp.files[i]); } -- 2.20.1