Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
07a51957
Commit
07a51957
authored
Nov 10, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/FileInfo: remove the obsolete class Error overloads
parent
37c4470f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
FileInfo.hxx
src/fs/FileInfo.hxx
+0
-26
No files found.
src/fs/FileInfo.hxx
View file @
07a51957
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#include "check.h"
#include "check.h"
#include "Path.hxx"
#include "Path.hxx"
#include "util/Error.hxx"
#include "system/Error.hxx"
#include "system/Error.hxx"
#include <stdint.h>
#include <stdint.h>
...
@@ -53,8 +52,6 @@ FileTimeToTimeT(FILETIME ft)
...
@@ -53,8 +52,6 @@ FileTimeToTimeT(FILETIME ft)
class
FileInfo
{
class
FileInfo
{
friend
bool
GetFileInfo
(
Path
path
,
FileInfo
&
info
,
friend
bool
GetFileInfo
(
Path
path
,
FileInfo
&
info
,
bool
follow_symlinks
);
bool
follow_symlinks
);
friend
bool
GetFileInfo
(
Path
path
,
FileInfo
&
info
,
Error
&
error
);
friend
class
FileReader
;
friend
class
FileReader
;
#ifdef WIN32
#ifdef WIN32
...
@@ -145,27 +142,4 @@ GetFileInfo(Path path, FileInfo &info, bool follow_symlinks=true)
...
@@ -145,27 +142,4 @@ GetFileInfo(Path path, FileInfo &info, bool follow_symlinks=true)
#endif
#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
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment