Drop unneeded properties of ComplexOptCheck
authorAlexander Popov <alex.popov@linux.com>
Wed, 8 Jun 2022 22:32:59 +0000 (01:32 +0300)
committerAlexander Popov <alex.popov@linux.com>
Wed, 8 Jun 2022 22:32:59 +0000 (01:32 +0300)
Thanks to the coverage info

kconfig_hardened_check/__init__.py

index fea82724f2aa54ae19bb0bd799ed28ff34ec58b9..0c58c0ca9e5b8443429b967fd37ec9ff93e51ce0 100644 (file)
@@ -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':