]> git.wh0rd.org Git - nano.git/commitdiff
Clean up some unused variables from old undo implementation.
authorChris Allegretta <chrisa@asty.org>
Sat, 12 Jul 2008 02:48:20 +0000 (02:48 +0000)
committerChris Allegretta <chrisa@asty.org>
Sat, 12 Jul 2008 02:48:20 +0000 (02:48 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4278 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/global.c
src/text.c

index addb5fe1612bc7e90e87251fc54b55983ea050ec..bf26ae205739c554d2d16d3b35d19eff9cbce1be 100644 (file)
@@ -481,8 +481,6 @@ void shortcut_init(bool unjustify)
     const char *refresh_msg = N_("Refresh");
     const char *insert_file_msg =  N_("Insert File");
     const char *go_to_line_msg = N_("Go To Line");
-    const char *prev_undo_msg = N_("Prev Undo");
-    const char *next_undo_msg = N_("Next Undo");
 
 #ifndef DISABLE_HELP
     /* TRANSLATORS: The next long series of strings are shortcut descriptions;
@@ -601,10 +599,6 @@ void shortcut_init(bool unjustify)
        N_("Recall the previous search/replace string");
     const char *nano_next_history_msg =
        N_("Recall the next search/replace string");
-    const char *nano_prev_undo_msg =
-       N_("Recall the previous undo action");
-    const char *nano_next_undo_msg =
-       N_("Recall the next undo action");
 #endif
 #ifndef DISABLE_BROWSER
     const char *nano_tofiles_msg = N_("Go to file browser");
index 0ccfebc37ddaf9cb21dae73da02ba0e4a2ff27d0..95763cb5a94994e4730c4eb562f80c8a8914a6f2 100644 (file)
@@ -370,7 +370,7 @@ void do_undo(void)
     undo *u = openfile->current_undo;
     filestruct *f = openfile->current, *t;
     int len = 0;
-    char *action, *data, *uu;
+    char *action, *data;
 
     if (!u) {
        statusbar(_("Nothing in undo buffer!"));
@@ -454,7 +454,7 @@ void do_redo(void)
     undo *u = openfile->undotop;
     filestruct *f = openfile->current, *t;
     int len = 0;
-    char *action, *data, *uu;
+    char *action, *data;
 
     for (; u != NULL && u->next != openfile->current_undo; u = u->next)
        ;
@@ -693,7 +693,6 @@ bool execute_command(const char *command)
 
 void add_undo(undo_type current_action, openfilestruct *fs)
 {
-    int i;
     undo *u = nmalloc(sizeof(undo));
     char *data;