Remove library functions from collections.lens
I have removed some functions from the old library class since they have been re-implemented in the library module.
This commit is contained in:
parent
85e85129f8
commit
0157d2bcf3
|
@ -44,14 +44,6 @@ def lib_get_cur_id():
|
|||
global cur_lib_id
|
||||
return cur_lib_id
|
||||
|
||||
#def lib_filter(text):
|
||||
# global library
|
||||
# library.filter(text)
|
||||
|
||||
def lib_is_visible(text):
|
||||
global library
|
||||
return library.is_visible(text)
|
||||
|
||||
def walk_plist():
|
||||
global playlist
|
||||
global library
|
||||
|
|
|
@ -36,16 +36,6 @@ class Library(collection.Collection):
|
|||
save(badfiles, "badfiles", "")
|
||||
self.disp()
|
||||
|
||||
def inc_count(self, id):
|
||||
rec = self.records.get(id, None)
|
||||
if rec:
|
||||
rec.count += 1
|
||||
|
||||
def inc_score(self, id, amount):
|
||||
rec = self.records.get(id, None)
|
||||
if rec:
|
||||
rec.score += amount
|
||||
|
||||
def update(self, path):
|
||||
global badfiles
|
||||
FileRef = libsaria.collection.FileRef
|
||||
|
|
|
@ -115,7 +115,6 @@ def filter(text):
|
|||
visible = None
|
||||
filtered = False
|
||||
|
||||
|
||||
def is_visible(id):
|
||||
global filtered
|
||||
global visible
|
||||
|
|
|
@ -108,7 +108,7 @@ class Library(Collection):
|
|||
self.list.refilter()
|
||||
|
||||
def refilter(self, list, iter):
|
||||
return collection.lib_is_visible(list[iter][0])
|
||||
return library.is_visible(list[iter][0])
|
||||
|
||||
|
||||
class Playlist(Collection):
|
||||
|
|
Loading…
Reference in New Issue