aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-02-28 21:21:08 +0100
committerMax Kellermann <max@duempel.org>2015-02-28 23:00:26 +0100
commitee327db51739fc6a183b5258afcffd11e308609b (patch)
treecfe3dd8f3c39a25a5bfd3f4d41f8c616bc89e08c
parent90a61b6babe3528efd982511790057e1e1e39b81 (diff)
downloadmpd-ee327db51739fc6a183b5258afcffd11e308609b.tar.gz
mpd-ee327db51739fc6a183b5258afcffd11e308609b.tar.xz
mpd-ee327db51739fc6a183b5258afcffd11e308609b.zip
fs/FileSystem: remove unused WIN32 port of StatFile()
-rw-r--r--src/fs/FileSystem.hxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/fs/FileSystem.hxx b/src/fs/FileSystem.hxx
index c0c77129c..dcaca7c34 100644
--- a/src/fs/FileSystem.hxx
+++ b/src/fs/FileSystem.hxx
@@ -76,23 +76,22 @@ RenameFile(Path oldpath, Path newpath)
return rename(oldpath.c_str(), newpath.c_str()) == 0;
}
+#ifndef WIN32
+
/**
* Wrapper for stat() that uses #Path names.
*/
static inline bool
StatFile(Path file, struct stat &buf, bool follow_symlinks = true)
{
-#ifdef WIN32
- (void)follow_symlinks;
- return stat(file.c_str(), &buf) == 0;
-#else
int ret = follow_symlinks
? stat(file.c_str(), &buf)
: lstat(file.c_str(), &buf);
return ret == 0;
-#endif
}
+#endif
+
/**
* Wrapper for unlink() that uses #Path names.
*/