Remove broken and untested extract_items

This commit is contained in:
Hugo 2017-09-25 13:02:12 +03:00
parent 3be6a0504e
commit 8c6c6aaab8

View file

@ -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