From 514fa6cf0c51fde0dd48adcaea7bcb113484fe50 Mon Sep 17 00:00:00 2001 From: Ross Ashley Date: Thu, 26 Sep 2013 15:18:58 -0400 Subject: [PATCH] Removed some unused and commented out code. --- beetsplug/lastgenre/__init__.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index 2c19786bb..eba06bc56 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -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