fs/FileSystem: remove unused function FOpen()

This commit is contained in:
Max Kellermann 2020-05-05 14:18:01 +02:00
parent 1787aa5e00
commit 97f7270aa8
1 changed files with 0 additions and 16 deletions

View File

@ -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,24 +29,9 @@
#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.
*/