mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-04 18:36:02 -05:00
[db] Remove unused function "db_queue_get_pos_byfileid"
This commit is contained in:
parent
5e13bac867
commit
f47a17e186
24
src/db.c
24
src/db.c
@ -4624,30 +4624,6 @@ db_queue_get_pos(uint32_t item_id, char shuffle)
|
|||||||
#undef Q_TMPL_SHUFFLE
|
#undef Q_TMPL_SHUFFLE
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
db_queue_get_pos_byfileid(uint32_t file_id, char shuffle)
|
|
||||||
{
|
|
||||||
#define Q_TMPL "SELECT pos FROM queue WHERE file_id = %d LIMIT 1;"
|
|
||||||
#define Q_TMPL_SHUFFLE "SELECT shuffle_pos FROM queue WHERE file_id = %d LIMIT 1;"
|
|
||||||
|
|
||||||
char *query;
|
|
||||||
int pos;
|
|
||||||
|
|
||||||
if (shuffle)
|
|
||||||
query = sqlite3_mprintf(Q_TMPL_SHUFFLE, file_id);
|
|
||||||
else
|
|
||||||
query = sqlite3_mprintf(Q_TMPL, file_id);
|
|
||||||
|
|
||||||
pos = db_get_one_int(query);
|
|
||||||
|
|
||||||
sqlite3_free(query);
|
|
||||||
|
|
||||||
return pos;
|
|
||||||
|
|
||||||
#undef Q_TMPL
|
|
||||||
#undef Q_TMPL_SHUFFLE
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
queue_fetch_byitemid(uint32_t item_id, struct db_queue_item *queue_item, int with_metadata)
|
queue_fetch_byitemid(uint32_t item_id, struct db_queue_item *queue_item, int with_metadata)
|
||||||
{
|
{
|
||||||
|
3
src/db.h
3
src/db.h
@ -815,9 +815,6 @@ db_queue_get_count();
|
|||||||
int
|
int
|
||||||
db_queue_get_pos(uint32_t item_id, char shuffle);
|
db_queue_get_pos(uint32_t item_id, char shuffle);
|
||||||
|
|
||||||
int
|
|
||||||
db_queue_get_pos_byfileid(uint32_t file_id, char shuffle);
|
|
||||||
|
|
||||||
/* Inotify */
|
/* Inotify */
|
||||||
int
|
int
|
||||||
db_watch_clear(void);
|
db_watch_clear(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user