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
db5a6916
Commit
db5a6916
authored
Dec 26, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PlaylistFile: remove obsolete function TranslatePlaylistError()
parent
48693250
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
26 deletions
+0
-26
PlaylistFile.cxx
src/PlaylistFile.cxx
+0
-23
PlaylistFile.hxx
src/PlaylistFile.hxx
+0
-3
No files found.
src/PlaylistFile.cxx
View file @
db5a6916
...
...
@@ -126,29 +126,6 @@ spl_map_to_fs(const char *name_utf8, Error &error)
return
path_fs
;
}
gcc_pure
static
bool
IsNotFoundError
(
const
Error
&
error
)
{
#ifdef WIN32
return
error
.
IsDomain
(
win32_domain
)
&&
error
.
GetCode
()
==
ERROR_FILE_NOT_FOUND
;
#else
return
error
.
IsDomain
(
errno_domain
)
&&
error
.
GetCode
()
==
ENOENT
;
#endif
}
void
TranslatePlaylistError
(
Error
&
error
)
{
if
(
IsNotFoundError
(
error
))
{
error
.
Clear
();
error
.
Set
(
playlist_domain
,
int
(
PlaylistResult
::
NO_SUCH_LIST
),
"No such playlist"
);
}
}
/**
* Create an #Error for the current errno.
*/
...
...
src/PlaylistFile.hxx
View file @
db5a6916
...
...
@@ -49,9 +49,6 @@ spl_valid_name(const char *name_utf8);
AllocatedPath
spl_map_to_fs
(
const
char
*
name_utf8
,
Error
&
error
);
void
TranslatePlaylistError
(
Error
&
error
);
/**
* Returns a list of stored_playlist_info struct pointers. Returns
* nullptr if an error occurred.
...
...
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