commit 274142cb10a7f07edc76298cd0129c3473fd8195
parent b8576780bf1977660015ae8ed3ac963cebfd165b
Author: Chris Allegretta <chrisa@asty.org>
Date: Sat, 12 Jul 2008 02:48:20 +0000
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
Diffstat:
2 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/src/global.c b/src/global.c
@@ -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");
diff --git a/src/text.c b/src/text.c
@@ -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;