* fileio.c (Finsert_file_contents): Remove unused local.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 31 May 2013 01:31:10 +0000 (18:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 31 May 2013 01:31:10 +0000 (18:31 -0700)
Fixes: debbugs:8447

src/ChangeLog
src/fileio.c

index 56e13da..bfc51b8 100644 (file)
@@ -1,3 +1,7 @@
+2013-05-31  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fileio.c (Finsert_file_contents): Remove unused local (Bug#8447).
+
 2013-05-29  Eli Zaretskii  <eliz@gnu.org>
 
        * Makefile.in (mostlyclean): Remove *.res files.
index e2b1007..75e1f13 100644 (file)
@@ -3489,7 +3489,6 @@ by calling `format-decode', which see.  */)
   EMACS_TIME mtime;
   int fd;
   ptrdiff_t inserted = 0;
-  bool nochange = 0;
   ptrdiff_t how_much;
   off_t beg_offset, end_offset;
   int unprocessed;
@@ -4060,9 +4059,7 @@ by calling `format-decode', which see.  */)
       if (bufpos == inserted)
        {
          /* Truncate the buffer to the size of the file.  */
-         if (same_at_start == same_at_end)
-           nochange = 1;
-         else
+         if (same_at_start != same_at_end)
            del_range_byte (same_at_start, same_at_end, 0);
          inserted = 0;