diff --git a/src/db.c b/src/db.c index b1903965..300b3e0c 100644 --- a/src/db.c +++ b/src/db.c @@ -1182,30 +1182,6 @@ db_file_fetch_byid(int id) #undef Q_TMPL } -struct media_file_info * -db_file_fetch_bypath(char *path) -{ -#define Q_TMPL "SELECT * FROM songs WHERE path = '%q';" - struct media_file_info *mfi; - char *query; - - query = sqlite3_mprintf(Q_TMPL, path); - if (!query) - { - DPRINTF(E_LOG, L_DB, "Out of memory for query string\n"); - - return NULL; - } - - mfi = db_file_fetch_byquery(query); - - sqlite3_free(query); - - return mfi; - -#undef Q_TMPL -} - int db_file_add(struct media_file_info *mfi) { diff --git a/src/db.h b/src/db.h index af325aa1..1dc0caca 100644 --- a/src/db.h +++ b/src/db.h @@ -237,9 +237,6 @@ db_file_stamp_bypath(char *path); struct media_file_info * db_file_fetch_byid(int id); -struct media_file_info * -db_file_fetch_bypath(char *path); - int db_file_add(struct media_file_info *mfi);