[youtube] Move cache into its own module
[youtube-dl] / youtube_dl / utils.py
index 3846dfdcad0d45af18f07eaa8ef50242d2a5abfd..0bc410e91b01d08bd01f3b8fe2315b4b2e2b97e0 100644 (file)
@@ -1076,12 +1076,6 @@ def intlist_to_bytes(xs):
         return bytes(xs)
 
 
-def get_cachedir(params={}):
-    cache_root = os.environ.get('XDG_CACHE_HOME',
-                                os.path.expanduser('~/.cache'))
-    return params.get('cachedir', os.path.join(cache_root, 'youtube-dl'))
-
-
 # Cross-platform file locking
 if sys.platform == 'win32':
     import ctypes.wintypes