From 9da3044cf7b16213e91a94f759f8b7e00e35ac09 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Mon, 31 Oct 2022 20:57:49 +0100 Subject: Database: Remove firstpos/pos_history From what I can tell, this is unused historical baggage that has no effect whatsoever these days. Change-Id: I1b6fed64e7bf5cc4db4ec028617c818c59d81324 --- apps/tree.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'apps/tree.c') diff --git a/apps/tree.c b/apps/tree.c index 6e9ca106c0..cb7c033b6f 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -89,7 +89,7 @@ static struct tree_context tc; char lastfile[MAX_PATH]; static char lastdir[MAX_PATH]; #ifdef HAVE_TAGCACHE -static int lasttable, lastextra, lastfirstpos; +static int lasttable, lastextra; #endif static bool reload_dir = false; @@ -364,7 +364,6 @@ static int update_dir(void) if (id3db) { if (tc.currtable != lasttable || tc.currextra != lastextra || - tc.firstpos != lastfirstpos || reload_dir) { if (tagtree_load(&tc) < 0) @@ -372,7 +371,6 @@ static int update_dir(void) lasttable = tc.currtable; lastextra = tc.currextra; - lastfirstpos = tc.firstpos; changed = true; } } @@ -636,10 +634,8 @@ static int dirbrowse(void) if (tc.selected_item < 0) tc.selected_item = 0; #ifdef HAVE_TAGCACHE - tc.firstpos = 0; lasttable = -1; lastextra = -1; - lastfirstpos = 0; #endif start_wps = false; -- cgit v1.2.3