]> git.lyx.org Git - lyx.git/blobdiff - src/support/unlink.C
remove unused stuff
[lyx.git] / src / support / unlink.C
index 648bcca5632614ebeb14275feb3eef581cc119b9..5f523498a4a79c64926f62617953833c7ca1fe58 100644 (file)
 #include <config.h>
 
 #include "support/lyxlib.h"
+#include "support/filename.h"
+
+
+namespace lyx {
+namespace support {
 
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif
 
-int lyx::support::unlink(std::string const & pathname)
+int unlink(FileName const & pathname)
 {
-       return ::unlink(pathname.c_str());
+       return ::unlink(pathname.toFilesystemEncoding().c_str());
 }
+
+
+} // namespace support
+} // namespace lyx