From: Daniel Carl Date: Sat, 23 Feb 2013 23:38:05 +0000 (+0100) Subject: Removed redundant and no more needed code. X-Git-Url: https://git.owens.tech/git.owens.tech/git.owens.tech/git?a=commitdiff_plain;h=e5ada13ba5c8eb6ba8bbdddb106493cd6531ee44;p=vimb.git Removed redundant and no more needed code. --- 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]); }