libsaria: Remove unused queue functions
These haven't been used in a long, long time. I don't even know why they're still there.
This commit is contained in:
parent
0908588325
commit
93f2f6b918
|
@ -43,7 +43,7 @@ def get_attrs(*attrs):
|
|||
|
||||
def set_attr(attr, value):
|
||||
if cur_source:
|
||||
cur_source.set_attr(cur_source.get_cur_id(), attr, value)
|
||||
cur_source.set_attr(cur_id, attr, value)
|
||||
cur_source.save()
|
||||
|
||||
def init_src(init_func, callback):
|
||||
|
@ -59,8 +59,10 @@ def new_source(path, bg=True):
|
|||
libsaria.callbacks.new_source()
|
||||
|
||||
def play_id(id):
|
||||
global cur_id
|
||||
cur_id = id
|
||||
library.play_id(id)
|
||||
queue.rm_id(id)
|
||||
queue.rm_ids([id])
|
||||
|
||||
def next():
|
||||
global cur_id
|
||||
|
|
|
@ -59,19 +59,6 @@ def num_visible():
|
|||
return len(visible)
|
||||
return len(queue.queue_list)
|
||||
|
||||
def load_id(id):
|
||||
global cur_id
|
||||
cur_id = id
|
||||
path = library.get_attrs(id, "filepath")
|
||||
rm_id(id)
|
||||
return source.load_file(path)
|
||||
|
||||
def play_id(id):
|
||||
if load_id(id) == True:
|
||||
libsaria.controls.play()
|
||||
return True
|
||||
return False
|
||||
|
||||
def next():
|
||||
return queue.pop()
|
||||
|
||||
|
|
Loading…
Reference in New Issue