Commit 97f7270a authored by Max Kellermann's avatar Max Kellermann

fs/FileSystem: remove unused function FOpen()

parent 1787aa5e
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#ifndef MPD_FS_FILESYSTEM_HXX #ifndef MPD_FS_FILESYSTEM_HXX
#define MPD_FS_FILESYSTEM_HXX #define MPD_FS_FILESYSTEM_HXX
#include "Traits.hxx"
#include "Path.hxx" #include "Path.hxx"
#include "system/UniqueFileDescriptor.hxx" #include "system/UniqueFileDescriptor.hxx"
...@@ -30,25 +29,10 @@ ...@@ -30,25 +29,10 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <stdio.h>
class AllocatedPath; class AllocatedPath;
/** /**
* Wrapper for fopen() that uses #Path names.
*/
static inline FILE *
FOpen(Path file, PathTraitsFS::const_pointer mode)
{
#ifdef _WIN32
return _tfopen(file.c_str(), mode);
#else
return fopen(file.c_str(), mode);
#endif
}
/**
* Wrapper for open_cloexec() that uses #Path names. * Wrapper for open_cloexec() that uses #Path names.
*/ */
static inline UniqueFileDescriptor static inline UniqueFileDescriptor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment