diff --git a/ChangeLog b/ChangeLog index f71921e1475903d7b3e6849feacb268a5e3c5568..84aa125d54a5f9679ac781006bd2577c81c04a7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * src/text.c: Rename 'to_end' to 'to_eof', to lessen confusion with CUT_TO_END (which is about cutting to end-of-line). * src/text.c: Upon better thought, elide the unneeded 'to_eof'. + * src/text.c: And elide a totally unused 'strdata2'. 2014-06-18 Mark Majeres <mark@engine12.com> * src/text.c (add_undo): Don't start a new undo for CUT when the diff --git a/src/nano.h b/src/nano.h index a616225cf7f376dc39539e3f710727e722c47b81..fb2ddf444d798a10efa13828b210fd6cd7f03d36 100644 --- a/src/nano.h +++ b/src/nano.h @@ -332,8 +332,6 @@ typedef struct undo { /* Where did this action begin or end. */ char *strdata; /* String type data we will use for copying the affected line back. */ - char *strdata2; - /* Sigh, need this too, it looks like. */ int xflags; /* Some flag data we need. */ diff --git a/src/text.c b/src/text.c index 10f0e2270dafbf8033446645d52377382e190e8e..4dbaf71fab5bf66e133ea9136b42aa22f5b28193 100644 --- a/src/text.c +++ b/src/text.c @@ -889,7 +889,6 @@ void add_undo(undo_type current_action) fs->current_undo = u; } u->strdata = NULL; - u->strdata2 = NULL; u->cutbuffer = NULL; u->cutbottom = NULL; u->mark_set = FALSE;