Skip to content

Commit b02fb78

Browse files
authored
Merge pull request #1284 from onekey-sec/alert-autofix-316
Potential fix for code scanning alert no. 316: Incomplete ordering
2 parents 268ae0e + 8ec047f commit b02fb78

File tree

1 file changed

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

1 file changed

+0
-12
lines changed

python/unblob/handlers/filesystem/yaffs.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -204,18 +204,6 @@ class YAFFSEntry:
204204
st_mtime: int = attrs.field(default=0)
205205
st_ctime: int = attrs.field(default=0)
206206

207-
def __lt__(self, other):
208-
return self.object_id < other.object_id
209-
210-
def __gt__(self, other):
211-
return self.object_id > other.object_id
212-
213-
def __eq__(self, other):
214-
return self.object_id == other.object_id
215-
216-
def __hash__(self):
217-
return hash(self.object_id)
218-
219207
def __str__(self):
220208
return f"{self.object_id}: {self.name}"
221209

0 commit comments

Comments
 (0)