From 3ef18b105f43ffa26a7fd4d43afcf9c0ea3d4f1c Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Tue, 6 Jan 2015 01:45:32 +0000 Subject: [PATCH] Remove pointless assertion code. --- volatility/framework/validity.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/volatility/framework/validity.py b/volatility/framework/validity.py index 87c4a7e13..d32747c0c 100644 --- a/volatility/framework/validity.py +++ b/volatility/framework/validity.py @@ -30,10 +30,3 @@ class ValidityRoutines(object): """ assert issubclass(klass, valid_class), self.__class__.__name__ + " expected " + \ valid_class.__name__ + ", not " + klass.__name__ - - def _confirm(self, assertion, error): - """Acts like an assertion, but will not be disabled when __debug__ is disabled""" - if not assertion: - if error is None: - error = "An unspecified Assertion was not met in " + self.__class__.__name__ - raise AssertionError(error)