]> git.wh0rd.org Git - nano.git/commitdiff
add_to_cutbuffer() - Remove useless statements (Rocco).
authorChris Allegretta <chrisa@asty.org>
Thu, 10 May 2001 22:55:16 +0000 (22:55 +0000)
committerChris Allegretta <chrisa@asty.org>
Thu, 10 May 2001 22:55:16 +0000 (22:55 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@644 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
cut.c

index 6bebb2d6a3ae1273bb2fdcfc5039b67d222e8b6e..254367f3077bf5b7080cfd2b5c2b227a8eb1ee97 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@ Cvs code -
        - Added config.guess and config.sub to distribution because
          apparently newer autoconf/automakes can't live without them.
        - Various spelling updates by David Lawrence Ramsey.
+- cut.c:
+  add_to_cutbuffer()
+       - Remove useless statements (Rocco).      
 - move.c:
   page_up()
        - Rewritten with a loop to make screen updates work when
diff --git a/cut.c b/cut.c
index a1d01e181d0ba7b69239af79c0257477e4700491..f5a3232a8da8a831aba59ef4065564f079957aed 100644 (file)
--- a/cut.c
+++ b/cut.c
@@ -39,15 +39,12 @@ static filestruct *cutbottom = NULL;        /* Pointer to end of cutbuffer */
 
 void add_to_cutbuffer(filestruct * inptr)
 {
-    filestruct *tmp;
-
 #ifdef DEBUG
     fprintf(stderr, _("add_to_cutbuffer called with inptr->data = %s\n"),
            inptr->data);
 #endif
 
     totsize -= strlen(inptr->data);
-    tmp = cutbuffer;
     if (cutbuffer == NULL) {
        cutbuffer = inptr;
        inptr->prev = NULL;