From 8c6c6aaab897389ccb7f644dee5d86aac39ff5c2 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 25 Sep 2017 13:02:12 +0300 Subject: [PATCH] Remove broken and untested extract_items --- pylast/__init__.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index d76716e..692bec5 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -3195,9 +3195,6 @@ class User(_BaseObject, _Chartable): This method uses caching. Enable caching only if you're pulling a large amount of data. - - Use extract_items() with the return of this function to - get only a sequence of Track objects with no playback dates. """ params = self._get_params() @@ -3312,9 +3309,6 @@ class User(_BaseObject, _Chartable): This method uses caching. Enable caching only if you're pulling a large amount of data. - - Use extract_items() with the return of this function to - get only a sequence of Track objects with no playback dates. """ params = self._get_params() @@ -4121,17 +4115,4 @@ def _unescape_htmlentity(string): return string -def extract_items(top_items_or_library_items): - """ - Extracts a sequence of items from a sequence of TopItem or - LibraryItem objects. - """ - - seq = [] - for i in top_items_or_library_items: - seq.append(i.item) - - return seq - - # End of file