libsaria: Remove unused function
I don't need the file_empty() function in the cache anymore
This commit is contained in:
parent
7319767ac3
commit
72f7ec90eb
|
@ -17,11 +17,6 @@ def file_exists(cache_path):
|
||||||
return False
|
return False
|
||||||
return getsize(cache_path) != 0
|
return getsize(cache_path) != 0
|
||||||
|
|
||||||
def file_empty(cache_path):
|
|
||||||
if not isfile(cache_path):
|
|
||||||
return False
|
|
||||||
return getsize(cache_path) == 0
|
|
||||||
|
|
||||||
def make_cache_path(artist, album, file):
|
def make_cache_path(artist, album, file):
|
||||||
cache_file = "%s%s%s%s" % (artist, sep, album, sep)
|
cache_file = "%s%s%s%s" % (artist, sep, album, sep)
|
||||||
cache_path = join(CACHE_DIR, cache_file)
|
cache_path = join(CACHE_DIR, cache_file)
|
||||||
|
|
Loading…
Reference in New Issue