Remove unused db_file_fetch_bypath()

This commit is contained in:
Julien BLACHE 2009-06-11 20:46:11 +02:00
parent 0ad20e5220
commit 3cadbdb1e3
2 changed files with 0 additions and 27 deletions

View File

@ -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)
{

View File

@ -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);