use platform namespace to delete file

This commit is contained in:
Axel Kohlmeyer
2021-10-05 17:57:38 -04:00
parent e3e82df995
commit 528050aa08

View File

@ -26,7 +26,6 @@
#include <cctype>
#include <cstring>
#include <unistd.h>
using namespace LAMMPS_NS;
@ -170,7 +169,7 @@ void WriteCoeff::command(int narg, char **arg)
}
fclose(one);
fclose(two);
unlink(file);
platform::unlink(file);
}
delete[] file;