tweaks: drop some old debugging code plus a superfluous comment
parent
dc3618a127
commit
df41114e0e
|
@ -284,16 +284,10 @@ void do_uncut_text(void)
|
||||||
/* Set the desired x position to where the pasted text ends. */
|
/* Set the desired x position to where the pasted text ends. */
|
||||||
openfile->placewewant = xplustabs();
|
openfile->placewewant = xplustabs();
|
||||||
|
|
||||||
/* Mark the file as modified. */
|
|
||||||
set_modified();
|
set_modified();
|
||||||
|
|
||||||
refresh_needed = TRUE;
|
refresh_needed = TRUE;
|
||||||
|
|
||||||
#ifdef ENABLE_COLOR
|
#ifdef ENABLE_COLOR
|
||||||
check_the_multis(openfile->current);
|
check_the_multis(openfile->current);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
dump_filestruct_reverse();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -616,7 +616,6 @@ filestruct *fsfromline(ssize_t lineno);
|
||||||
#endif
|
#endif
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
void dump_filestruct(const filestruct *inptr);
|
void dump_filestruct(const filestruct *inptr);
|
||||||
void dump_filestruct_reverse(void);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Most functions in winio.c. */
|
/* Most functions in winio.c. */
|
||||||
|
|
11
src/utils.c
11
src/utils.c
|
@ -587,15 +587,4 @@ void dump_filestruct(const filestruct *inptr)
|
||||||
inptr = inptr->next;
|
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 */
|
#endif /* DEBUG */
|
||||||
|
|
Loading…
Reference in New Issue