removed mch_remove macro

This commit is contained in:
Stefan Hoffmann
2014-04-08 22:01:33 +02:00
committed by Thiago de Arruda
parent 445f31f076
commit a1df458524
13 changed files with 50 additions and 50 deletions

View File

@@ -1207,9 +1207,9 @@ filterend:
EMSG(_("E135: *Filter* Autocommands must not change current buffer"));
}
if (itmp != NULL)
mch_remove(itmp);
os_remove((char *)itmp);
if (otmp != NULL)
mch_remove(otmp);
os_remove((char *)otmp);
vim_free(itmp);
vim_free(otmp);
}
@@ -1712,9 +1712,9 @@ void write_viminfo(char_u *file, int forceit)
* In case of an error keep the original viminfo file.
* Otherwise rename the newly written file.
*/
if (viminfo_errcnt || vim_rename(tempname, fname) == -1)
mch_remove(tempname);
if (viminfo_errcnt || vim_rename(tempname, fname) == -1) {
os_remove((char *)tempname);
}
}
end: