Commit 274142cb authored by Chris Allegretta's avatar Chris Allegretta
Browse files

Clean up some unused variables from old undo implementation.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4278 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 2 additions and 9 deletions
+2 -9
...@@ -481,8 +481,6 @@ void shortcut_init(bool unjustify) ...@@ -481,8 +481,6 @@ void shortcut_init(bool unjustify)
const char *refresh_msg = N_("Refresh"); const char *refresh_msg = N_("Refresh");
const char *insert_file_msg = N_("Insert File"); const char *insert_file_msg = N_("Insert File");
const char *go_to_line_msg = N_("Go To Line"); 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 #ifndef DISABLE_HELP
/* TRANSLATORS: The next long series of strings are shortcut descriptions; /* TRANSLATORS: The next long series of strings are shortcut descriptions;
...@@ -601,10 +599,6 @@ void shortcut_init(bool unjustify) ...@@ -601,10 +599,6 @@ void shortcut_init(bool unjustify)
N_("Recall the previous search/replace string"); N_("Recall the previous search/replace string");
const char *nano_next_history_msg = const char *nano_next_history_msg =
N_("Recall the next search/replace string"); 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 #endif
#ifndef DISABLE_BROWSER #ifndef DISABLE_BROWSER
const char *nano_tofiles_msg = N_("Go to file browser"); const char *nano_tofiles_msg = N_("Go to file browser");
......
...@@ -370,7 +370,7 @@ void do_undo(void) ...@@ -370,7 +370,7 @@ void do_undo(void)
undo *u = openfile->current_undo; undo *u = openfile->current_undo;
filestruct *f = openfile->current, *t; filestruct *f = openfile->current, *t;
int len = 0; int len = 0;
char *action, *data, *uu; char *action, *data;
if (!u) { if (!u) {
statusbar(_("Nothing in undo buffer!")); statusbar(_("Nothing in undo buffer!"));
...@@ -454,7 +454,7 @@ void do_redo(void) ...@@ -454,7 +454,7 @@ void do_redo(void)
undo *u = openfile->undotop; undo *u = openfile->undotop;
filestruct *f = openfile->current, *t; filestruct *f = openfile->current, *t;
int len = 0; int len = 0;
char *action, *data, *uu; char *action, *data;
for (; u != NULL && u->next != openfile->current_undo; u = u->next) for (; u != NULL && u->next != openfile->current_undo; u = u->next)
; ;
...@@ -693,7 +693,6 @@ bool execute_command(const char *command) ...@@ -693,7 +693,6 @@ bool execute_command(const char *command)
void add_undo(undo_type current_action, openfilestruct *fs) void add_undo(undo_type current_action, openfilestruct *fs)
{ {
int i;
undo *u = nmalloc(sizeof(undo)); undo *u = nmalloc(sizeof(undo));
char *data; char *data;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment