mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-23 12:05:47 -04:00
[db] Remove unused strdup_if()
This commit is contained in:
parent
5e93080aa2
commit
679c142212
12
src/db.c
12
src/db.c
@ -5233,18 +5233,6 @@ queue_enum_start(struct query_params *qp)
|
|||||||
#undef Q_TMPL
|
#undef Q_TMPL
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline char *
|
|
||||||
strdup_if(char *str, int cond)
|
|
||||||
{
|
|
||||||
if (str == NULL)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
if (cond)
|
|
||||||
return strdup(str);
|
|
||||||
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
queue_enum_fetch(struct query_params *qp, struct db_queue_item *qi, int must_strdup)
|
queue_enum_fetch(struct query_params *qp, struct db_queue_item *qi, int must_strdup)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user