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
This commit is contained in:
Chris Allegretta 2008-07-12 02:48:20 +00:00
parent b8576780bf
commit 274142cb10
2 changed files with 2 additions and 9 deletions

View File

@ -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)
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");

View File

@ -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)
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)
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;