diff options
author | Max Kellermann <max@musicpd.org> | 2020-05-05 14:18:01 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-05-05 14:19:29 +0200 |
commit | 97f7270aa8fa8b1618545f5eca4a9a1872f3d661 (patch) | |
tree | 40a7c98b9b77807ceca1a9aca3101458888e396b /src/fs | |
parent | 1787aa5e000816eac4e9dfb8dd1a904fbf1d7dab (diff) |
fs/FileSystem: remove unused function FOpen()
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/FileSystem.hxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/fs/FileSystem.hxx b/src/fs/FileSystem.hxx index e9ad4eab8..de74a7a15 100644 --- a/src/fs/FileSystem.hxx +++ b/src/fs/FileSystem.hxx @@ -20,7 +20,6 @@ #ifndef MPD_FS_FILESYSTEM_HXX #define MPD_FS_FILESYSTEM_HXX -#include "Traits.hxx" #include "Path.hxx" #include "system/UniqueFileDescriptor.hxx" @@ -30,25 +29,10 @@ #include <sys/stat.h> #include <unistd.h> -#include <stdio.h> - 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. */ static inline UniqueFileDescriptor |