From 5f49ab3108f8ba3a85524f747db2696e23a8af07 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Tue, 15 Sep 2020 22:57:33 +0200 Subject: [PATCH] remove deadcode --- dotdrop/action.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/dotdrop/action.py b/dotdrop/action.py index c31254e..b0c0177 100644 --- a/dotdrop/action.py +++ b/dotdrop/action.py @@ -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):