1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 18:34:48 +00:00

remove deadcode

This commit is contained in:
deadc0de6
2020-09-15 22:57:33 +02:00
parent 4f186c3d27
commit 5f49ab3108

View File

@@ -93,25 +93,6 @@ class Cmd(DictParser):
def __str__(self):
return 'key:{} -> \"{}\"'.format(self.key, self.action)
def __repr__(self):
return 'cmd({})'.format(self.__str__())
def __eq__(self, other):
self_dict = {
k: v
for k, v in self.__dict__.items()
if k not in self.eq_ignore
}
other_dict = {
k: v
for k, v in other.__dict__.items()
if k not in self.eq_ignore
}
return self_dict == other_dict
def __hash__(self):
return hash(self.key) ^ hash(self.action)
class Action(Cmd):