mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 18:45:20 -04:00
Remove unnecessary method definitions from folder driver
This commit is contained in:
@@ -58,14 +58,6 @@ class FOLDER_DEVICE(USBMS):
|
||||
self.booklist_class = BookList
|
||||
self.is_connected = True
|
||||
|
||||
@classmethod
|
||||
def get_gui_name(cls):
|
||||
if hasattr(cls, 'gui_name'):
|
||||
return cls.gui_name
|
||||
if hasattr(cls, '__name__'):
|
||||
return cls.__name__
|
||||
return cls.name
|
||||
|
||||
def disconnect_from_folder(self):
|
||||
self._main_prefix = ''
|
||||
self.is_connected = False
|
||||
@@ -85,9 +77,6 @@ class FOLDER_DEVICE(USBMS):
|
||||
def card_prefix(self, end_session=True):
|
||||
return (None, None)
|
||||
|
||||
def get_main_ebook_dir(self):
|
||||
return ''
|
||||
|
||||
def eject(self):
|
||||
self.is_connected = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user