Removed pointless access() call before unlink()

This commit is contained in:
Ivan Skytte Jørgensen
2016-09-26 16:50:29 +02:00
parent 3d3208a9a5
commit 62cacdfd6a

@ -331,7 +331,7 @@ int32_t SafeBuf::safeSave (char *filename ) {
close(fd);
// remove original file before replacing it
if ( access (filename , F_OK ) == 0) unlink ( filename );
(void)::unlink(filename);
// now move it to the actual filename
//int32_t status = ::rename ( fn.getBufStart() , filename );