Removed some unused and commented out code.

This commit is contained in:
Ross Ashley 2013-09-26 15:18:58 -04:00
parent 4291932298
commit 514fa6cf0c

View file

@ -49,10 +49,6 @@ PYLAST_EXCEPTIONS = (
# Core genre identification routine.
def _split_genre_string(genre):
genres = genre.split(',')
return genres
def _tags_for(obj):
"""Given a pylast entity (album or track), returns a list of
tag names for that entity. Returns an empty list if the entity is
@ -92,8 +88,6 @@ def _find_allowed(genres):
if _is_allowed(genre):
allowed_genres.append(genre.title())
# pdb.set_trace()
for genre in allowed_genres[:-1]:
genre = genre + ', '
allowed_genres_copy.append(genre)
@ -103,8 +97,6 @@ def _find_allowed(genres):
genre_str = ''
return genre_str.join(allowed_genres_copy)
# return genre.title() # Title case.
# return None
def _strings_to_genre(tags):
"""Given a list of strings, return a genre. Returns the first string