summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-11-21 07:19:35 +0300
committerMaxim Devaev <[email protected]>2022-11-21 07:19:35 +0300
commitbe25f5a0268910616c8089cc200b8be69a9ed9d6 (patch)
tree0e840d5916e0baa1786fc8fb7f1d01494c2ef07c /kvmd/plugins/msd/__init__.py
parent703cc2b9814793a974a50de222dbdaa0cf6ef3f3 (diff)
removed relay msd
Diffstat (limited to 'kvmd/plugins/msd/__init__.py')
-rw-r--r--kvmd/plugins/msd/__init__.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/kvmd/plugins/msd/__init__.py b/kvmd/plugins/msd/__init__.py
index 21afd86b..ffe4cf76 100644
--- a/kvmd/plugins/msd/__init__.py
+++ b/kvmd/plugins/msd/__init__.py
@@ -85,21 +85,6 @@ class MsdImageExistsError(MsdOperationError):
super().__init__("This image is already exists")
-class MsdMultiNotSupported(MsdOperationError):
- def __init__(self) -> None:
- super().__init__("This MSD does not support storing multiple images")
-
-
-class MsdCdromNotSupported(MsdOperationError):
- def __init__(self) -> None:
- super().__init__("This MSD does not support CD-ROM switching")
-
-
-class MsdRwNotSupported(MsdOperationError):
- def __init__(self) -> None:
- super().__init__("This MSD does not support RW switching")
-
-
# =====
class BaseMsdReader:
def get_state(self) -> dict:
@@ -281,10 +266,6 @@ class MsdFileWriter(BaseMsdWriter): # pylint: disable=too-many-instance-attribu
def is_complete(self) -> bool:
return (self.__written >= self.__file_size)
- def get_file(self) -> aiofiles.base.AiofilesContextManager:
- assert self.__file is not None
- return self.__file
-
async def open(self) -> "MsdFileWriter":
assert self.__file is None
get_logger(1).info("Writing %r image (%d bytes) to MSD ...", self.__name, self.__file_size)