removed unneeded code

This commit is contained in:
timeshifter
2021-11-26 19:18:20 +01:00
parent b57e2c66b4
commit 8bc1974fe6
-9
View File
@@ -118,9 +118,6 @@ class ZFSPath:
return "@".join([path, self._snapname])
return path
def __getitem__(self, item):
return self._qualified_name_as_list[item]
def __eq__(self, other: ZFSPath):
return (
self._elements == other._elements
@@ -128,12 +125,6 @@ class ZFSPath:
and self._snapname == other._snapname
)
@property
def _qualified_name_as_list(self) -> list[str]:
if self.is_snapshot:
return self._elements + [self._snapname]
return self._elements
@classmethod
def from_string(cls, string: str) -> ZFSPath:
snapname = None