mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 21:12:43 +01:00
Remove unused methods
This commit is contained in:
parent
0a3e47c965
commit
ee40050d4b
1 changed files with 0 additions and 13 deletions
|
|
@ -370,13 +370,6 @@ class StorageStyle(object):
|
|||
elif self.out_type == unicode:
|
||||
return u''
|
||||
|
||||
def _strip_possible_suffix(self, data):
|
||||
if self.suffix and isinstance(data, unicode) \
|
||||
and data.endswith(self.suffix):
|
||||
return data[:-len(self.suffix)]
|
||||
else:
|
||||
return data
|
||||
|
||||
|
||||
class ListStorageStyle(StorageStyle):
|
||||
"""Abstract class that provides access to lists.
|
||||
|
|
@ -445,12 +438,6 @@ class MP4StorageStyle(StorageStyle):
|
|||
|
||||
formats = ['aac', 'alac']
|
||||
|
||||
def fetch(self, mutagen_file):
|
||||
try:
|
||||
return mutagen_file[self.key][0]
|
||||
except KeyError:
|
||||
return None
|
||||
|
||||
def serialize(self, value):
|
||||
value = super(MP4StorageStyle, self).serialize(value)
|
||||
if self.key.startswith('----:') and isinstance(value, unicode):
|
||||
|
|
|
|||
Loading…
Reference in a new issue