removed unneeded code
This commit is contained in:
@@ -118,9 +118,6 @@ class ZFSPath:
|
|||||||
return "@".join([path, self._snapname])
|
return "@".join([path, self._snapname])
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def __getitem__(self, item):
|
|
||||||
return self._qualified_name_as_list[item]
|
|
||||||
|
|
||||||
def __eq__(self, other: ZFSPath):
|
def __eq__(self, other: ZFSPath):
|
||||||
return (
|
return (
|
||||||
self._elements == other._elements
|
self._elements == other._elements
|
||||||
@@ -128,12 +125,6 @@ class ZFSPath:
|
|||||||
and self._snapname == other._snapname
|
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
|
@classmethod
|
||||||
def from_string(cls, string: str) -> ZFSPath:
|
def from_string(cls, string: str) -> ZFSPath:
|
||||||
snapname = None
|
snapname = None
|
||||||
|
|||||||
Reference in New Issue
Block a user