From 72f7ec90eb9fdc91b9cbfeb6d1f6a0ca27ad6476 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Sat, 18 Jun 2011 09:44:34 -0400 Subject: [PATCH] libsaria: Remove unused function I don't need the file_empty() function in the cache anymore --- libsaria/storage/cache.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libsaria/storage/cache.py b/libsaria/storage/cache.py index 8ba2eb52..9982ab5b 100644 --- a/libsaria/storage/cache.py +++ b/libsaria/storage/cache.py @@ -17,11 +17,6 @@ def file_exists(cache_path): return False 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): cache_file = "%s%s%s%s" % (artist, sep, album, sep) cache_path = join(CACHE_DIR, cache_file)