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
0de42d56
Commit
0de42d56
authored
Apr 24, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DatabasePrint: eliminate printAllIn(), printInfoForAllIn()
parent
6378ad69
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
26 deletions
+4
-26
DatabaseCommands.cxx
src/command/DatabaseCommands.cxx
+4
-2
DatabasePrint.cxx
src/db/DatabasePrint.cxx
+0
-15
DatabasePrint.hxx
src/db/DatabasePrint.hxx
+0
-9
No files found.
src/command/DatabaseCommands.cxx
View file @
0de42d56
...
...
@@ -173,7 +173,8 @@ handle_listall(Client &client, gcc_unused int argc, char *argv[])
directory
=
argv
[
1
];
Error
error
;
return
printAllIn
(
client
,
directory
,
error
)
return
db_selection_print
(
client
,
DatabaseSelection
(
directory
,
true
),
false
,
false
,
error
)
?
CommandResult
::
OK
:
print_error
(
client
,
error
);
}
...
...
@@ -253,7 +254,8 @@ handle_listallinfo(Client &client, gcc_unused int argc, char *argv[])
directory
=
argv
[
1
];
Error
error
;
return
printInfoForAllIn
(
client
,
directory
,
error
)
return
db_selection_print
(
client
,
DatabaseSelection
(
directory
,
true
),
true
,
false
,
error
)
?
CommandResult
::
OK
:
print_error
(
client
,
error
);
}
src/db/DatabasePrint.cxx
View file @
0de42d56
...
...
@@ -216,21 +216,6 @@ searchStatsForSongsIn(Client &client, const char *name,
return
true
;
}
bool
printAllIn
(
Client
&
client
,
const
char
*
uri_utf8
,
Error
&
error
)
{
const
DatabaseSelection
selection
(
uri_utf8
,
true
);
return
db_selection_print
(
client
,
selection
,
false
,
false
,
error
);
}
bool
printInfoForAllIn
(
Client
&
client
,
const
char
*
uri_utf8
,
Error
&
error
)
{
const
DatabaseSelection
selection
(
uri_utf8
,
true
);
return
db_selection_print
(
client
,
selection
,
true
,
false
,
error
);
}
static
bool
PrintSongURIVisitor
(
Client
&
client
,
const
LightSong
&
song
)
{
...
...
src/db/DatabasePrint.hxx
View file @
0de42d56
...
...
@@ -39,15 +39,6 @@ db_selection_print(Client &client, const DatabaseSelection &selection,
gcc_nonnull
(
2
)
bool
printAllIn
(
Client
&
client
,
const
char
*
uri_utf8
,
Error
&
error
);
gcc_nonnull
(
2
)
bool
printInfoForAllIn
(
Client
&
client
,
const
char
*
uri_utf8
,
Error
&
error
);
gcc_nonnull
(
2
)
bool
searchStatsForSongsIn
(
Client
&
client
,
const
char
*
name
,
const
SongFilter
*
filter
,
Error
&
error
);
...
...
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