From f7d15b9c05cd39f33070a9071df830169b1735c2 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Thu, 11 Jun 2020 13:54:15 +0100 Subject: [PATCH] ext: Remove dead code from handlers.py This has been tested with vulture: https://pypi.org/project/vulture JIRA: https://gem5.atlassian.net/projects/GEM5/issues/GEM5-533 Change-Id: If878ea1900e2bcd76646b9860f2cc3f808bc5082 Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30239 Maintainer: Bobby R. Bruce Tested-by: kokoro Reviewed-by: Hoa Nguyen --- ext/testlib/handlers.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ext/testlib/handlers.py b/ext/testlib/handlers.py index 38f50c468..723a855e0 100644 --- a/ext/testlib/handlers.py +++ b/ext/testlib/handlers.py @@ -44,11 +44,10 @@ import testlib.helper as helper import testlib.log as log import testlib.result as result import testlib.state as state -import testlib.test_util as test import testlib.terminal as terminal from six.moves import queue as Queue -from testlib.configuration import config, constants +from testlib.configuration import constants class _TestStreamManager(object): @@ -194,8 +193,6 @@ class SummaryHandler(object): state.Result.Passed: color.Green, state.Result.Skipped: color.Cyan, } - sep_fmtkey = 'separator' - sep_fmtstr = '{%s}' % sep_fmtkey def __init__(self): self.mapping = { @@ -333,9 +330,6 @@ class TerminalHandler(object): def close(self): pass - def set_verbosity(self, verbosity): - self.verbosity = verbosity - class MultiprocessingHandlerWrapper(object): ''' A handler class which forwards log records to subhandlers, enabling -- 2.30.2