Removed redundant and no more needed code.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 23 Feb 2013 23:38:05 +0000 (00:38 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 23 Feb 2013 23:38:05 +0000 (00:38 +0100)
src/hints.c
src/main.c

index 704ec19..c90ad50 100644 (file)
@@ -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;
     }
 }
index 2bb47a7..05098e2 100644 (file)
@@ -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]);
     }