]> git.lyx.org Git - lyx.git/blobdiff - src/support/unlink.C
remove unused stuff
[lyx.git] / src / support / unlink.C
index ef3b52033269429a3aaab2e34f59789c42133739..5f523498a4a79c64926f62617953833c7ca1fe58 100644 (file)
@@ -1,10 +1,31 @@
+/**
+ * \file unlink.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
 #include <config.h>
 
-#include <unistd.h>
+#include "support/lyxlib.h"
+#include "support/filename.h"
+
+
+namespace lyx {
+namespace support {
 
-#include "lyxlib.h"
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
 
-int lyx::unlink(string const & pathname)
+int unlink(FileName const & pathname)
 {
-       return ::unlink(pathname.c_str());
+       return ::unlink(pathname.toFilesystemEncoding().c_str());
 }
+
+
+} // namespace support
+} // namespace lyx