From: Alexander Popov Date: Wed, 8 Jun 2022 22:32:59 +0000 (+0300) Subject: Drop unneeded properties of ComplexOptCheck X-Git-Tag: v0.6.1~142 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=92a654450834f12f1b7260409b89841ddc389cd9;p=kconfig-hardened-check.git Drop unneeded properties of ComplexOptCheck Thanks to the coverage info --- diff --git a/kconfig_hardened_check/__init__.py b/kconfig_hardened_check/__init__.py index fea8272..0c58c0c 100644 --- a/kconfig_hardened_check/__init__.py +++ b/kconfig_hardened_check/__init__.py @@ -193,25 +193,17 @@ class ComplexOptCheck: 'invalid {} check: {}'.format(self.__class__.__name__, opts) self.result = None - @property - def name(self): - return self.opts[0].name - @property def type(self): return 'complex' @property - def expected(self): - return self.opts[0].expected - - @property - def decision(self): - return self.opts[0].decision + def name(self): + return self.opts[0].name @property - def reason(self): - return self.opts[0].reason + def expected(self): + return self.opts[0].expected def table_print(self, mode, with_results): if mode == 'verbose':