0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

Remove unused code.

This commit is contained in:
Bram Moolenaar
2010-08-08 16:38:42 +02:00
parent 83687a7215
commit 09092155a6
31 changed files with 15 additions and 714 deletions

View File

@@ -398,13 +398,7 @@ close_buffer(win, buf, action)
/* Return when a window is displaying the buffer or when it's not
* unloaded. */
if (buf->b_nwindows > 0 || !unload_buf)
{
#if 0 /* why was this here? */
if (buf == curbuf)
u_sync(); /* sync undo before going to another buffer */
#endif
return;
}
/* Always remove the buffer when there is no file name. */
if (buf->b_ffname == NULL)