Tristate: drop broken and unused is_valid_state() method
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Tue, 27 Nov 2012 09:25:28 +0000 (11:25 +0200)
committerGuido Günther <agx@sigxcpu.org>
Tue, 27 Nov 2012 17:09:16 +0000 (18:09 +0100)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/tristate.py

index 2fd9652..6e26c82 100644 (file)
@@ -62,11 +62,6 @@ class Tristate(object):
         else:
             return 'off'
 
-    @classmethod
-    def is_valid_state(self, stat):
-        if state.lower() in self._VALID_NAMES:
-            return True
-
     @property
     def state(self):
         """Get current state"""