DatabasePrint: eliminate printAllIn(), printInfoForAllIn()
This commit is contained in:
parent
6378ad69bb
commit
0de42d56fc
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -37,15 +37,6 @@ bool
|
|||
db_selection_print(Client &client, const DatabaseSelection &selection,
|
||||
bool full, bool base, Error &error);
|
||||
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue