Skip to content

Commit f03558f

Browse files
e3krisztianqkaiser
authored andcommitted
chore(yaffs): remove unused ordering methods
It looks like the ordering methods of YAFFSEntry is unused, but tricks other tools into proposing even more complete unused ordering implementation.
1 parent 4f8d8de commit f03558f

File tree

1 file changed

+0
-14
lines changed
  • python/unblob/handlers/filesystem

1 file changed

+0
-14
lines changed

python/unblob/handlers/filesystem/yaffs.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import functools
21
import io
32
import itertools
43
from collections import defaultdict
@@ -188,7 +187,6 @@ class YAFFSConfig:
188187
ecc: bool
189188

190189

191-
@functools.total_ordering
192190
@attrs.define
193191
class YAFFSEntry:
194192
object_type: YaffsObjectType
@@ -206,18 +204,6 @@ class YAFFSEntry:
206204
st_mtime: int = attrs.field(default=0)
207205
st_ctime: int = attrs.field(default=0)
208206

209-
def __lt__(self, other):
210-
return self.object_id < other.object_id
211-
212-
def __gt__(self, other):
213-
return self.object_id > other.object_id
214-
215-
def __eq__(self, other):
216-
return self.object_id == other.object_id
217-
218-
def __hash__(self):
219-
return hash(self.object_id)
220-
221207
def __str__(self):
222208
return f"{self.object_id}: {self.name}"
223209

0 commit comments

Comments
 (0)