mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-12 07:09:00 +00:00
remove deadcode
This commit is contained in:
@@ -93,25 +93,6 @@ class Cmd(DictParser):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return 'key:{} -> \"{}\"'.format(self.key, self.action)
|
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):
|
class Action(Cmd):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user