diff --git a/src/cut.c b/src/cut.c
index e67cacb93f8486767f671be873351fc1681ada23..bf55787f87d483a216f23d07ba579004ada4157b 100644
--- a/src/cut.c
+++ b/src/cut.c
@@ -284,16 +284,10 @@ void do_uncut_text(void)
     /* Set the desired x position to where the pasted text ends. */
     openfile->placewewant = xplustabs();
 
-    /* Mark the file as modified. */
     set_modified();
-
     refresh_needed = TRUE;
 
 #ifdef ENABLE_COLOR
     check_the_multis(openfile->current);
 #endif
-
-#ifdef DEBUG
-    dump_filestruct_reverse();
-#endif
 }
diff --git a/src/proto.h b/src/proto.h
index 2232e269b82fb0479ed075b45bad5454369f6116..0e2e5641dd6682b4e0021936d4dda7f0ac9ab244 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -616,7 +616,6 @@ filestruct *fsfromline(ssize_t lineno);
 #endif
 #ifdef DEBUG
 void dump_filestruct(const filestruct *inptr);
-void dump_filestruct_reverse(void);
 #endif
 
 /* Most functions in winio.c. */
diff --git a/src/utils.c b/src/utils.c
index 8d5be6db6f458f648d2be7583e9d140dc02ad76a..d16c5e8af46cdee84620ad5d12026323cf071dd7 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -587,15 +587,4 @@ void dump_filestruct(const filestruct *inptr)
 	inptr = inptr->next;
     }
 }
-
-/* Dump the current buffer to stderr in reverse. */
-void dump_filestruct_reverse(void)
-{
-    const filestruct *fileptr = openfile->filebot;
-
-    while (fileptr != NULL) {
-	fprintf(stderr, "(%zd) %s\n", fileptr->lineno, fileptr->data);
-	fileptr = fileptr->prev;
-    }
-}
 #endif /* DEBUG */