Remove unused toplevel watch attribute

This commit is contained in:
Julien BLACHE
2009-06-11 17:36:13 +02:00
parent c81b33bd02
commit 30204cbb76
3 changed files with 3 additions and 11 deletions

View File

@@ -206,7 +206,6 @@ static struct col_type_map wi_cols_map[] =
{ wi_offsetof(wd), DB_TYPE_INT },
{ wi_offsetof(cookie), DB_TYPE_INT },
{ wi_offsetof(path), DB_TYPE_STRING },
{ wi_offsetof(toplevel), DB_TYPE_INT },
{ wi_offsetof(libidx), DB_TYPE_INT },
};
@@ -2174,12 +2173,12 @@ db_watch_clear(void)
int
db_watch_add(struct watch_info *wi)
{
#define Q_TMPL "INSERT INTO inotify (wd, cookie, path, toplevel, libidx) VALUES (%d, 0, '%q', %d, %d);"
#define Q_TMPL "INSERT INTO inotify (wd, cookie, path, libidx) VALUES (%d, 0, '%q', %d);"
char *query;
char *errmsg;
int ret;
query = sqlite3_mprintf(Q_TMPL, wi->wd, wi->path, wi->toplevel, wi->libidx);
query = sqlite3_mprintf(Q_TMPL, wi->wd, wi->path, wi->libidx);
if (!query)
{
DPRINTF(E_LOG, L_DB, "Out of memory for query string\n");
@@ -2741,7 +2740,6 @@ db_perthread_deinit(void)
" wd INTEGER PRIMARY KEY NOT NULL," \
" cookie INTEGER NOT NULL," \
" path VARCHAR(4096) NOT NULL," \
" toplevel INTEGER NOT NULL," \
" libidx INTEGER NOT NULL" \
");"