summaryrefslogtreecommitdiff
path: root/src/fs/FileInfo.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-11-10 11:36:21 +0100
committerMax Kellermann <max@musicpd.org>2016-11-10 12:55:08 +0100
commit07a51957ee7a8437174e0cceb690ab7443fd1ff4 (patch)
tree4c8561f6db62ae7ab44290e420642e47a74fe02e /src/fs/FileInfo.hxx
parent37c4470f10089db2625c15c788b38271e8d04894 (diff)
fs/FileInfo: remove the obsolete class Error overloads
Diffstat (limited to 'src/fs/FileInfo.hxx')
-rw-r--r--src/fs/FileInfo.hxx26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/fs/FileInfo.hxx b/src/fs/FileInfo.hxx
index 9855f0ce4..86adaa78c 100644
--- a/src/fs/FileInfo.hxx
+++ b/src/fs/FileInfo.hxx
@@ -22,7 +22,6 @@
#include "check.h"
#include "Path.hxx"
-#include "util/Error.hxx"
#include "system/Error.hxx"
#include <stdint.h>
@@ -53,8 +52,6 @@ FileTimeToTimeT(FILETIME ft)
class FileInfo {
friend bool GetFileInfo(Path path, FileInfo &info,
bool follow_symlinks);
- friend bool GetFileInfo(Path path, FileInfo &info,
- Error &error);
friend class FileReader;
#ifdef WIN32
@@ -145,27 +142,4 @@ GetFileInfo(Path path, FileInfo &info, bool follow_symlinks=true)
#endif
}
-inline bool
-GetFileInfo(Path path, FileInfo &info, bool follow_symlinks, Error &error)
-{
- bool success = GetFileInfo(path, info, follow_symlinks);
- if (!success) {
- const auto path_utf8 = path.ToUTF8();
-#ifdef WIN32
- error.FormatLastError("Failed to access %s",
- path_utf8.c_str());
-#else
- error.FormatErrno("Failed to access %s", path_utf8.c_str());
-#endif
- }
-
- return success;
-}
-
-inline bool
-GetFileInfo(Path path, FileInfo &info, Error &error)
-{
- return GetFileInfo(path, info, true, error);
-}
-
#endif