From 909749fc00d42b6e956853cfa59256be3c7ab01c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 11 Sep 2017 14:52:43 +1000 Subject: [PATCH] tools: drop the parser debug printfs Not required anymore, I think Signed-off-by: Peter Hutterer --- tools/ratbagctl.in | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tools/ratbagctl.in b/tools/ratbagctl.in index 8f606a02..66a5b2c6 100755 --- a/tools/ratbagctl.in +++ b/tools/ratbagctl.in @@ -1119,14 +1119,6 @@ active profile if none is given.""", ] -def pr_debug(ns, *args): - try: - if ns.verbose > 2: - print(*args) - except AttributeError: - print(ns) - - class ParseError(Exception): pass @@ -1166,9 +1158,7 @@ class RatbagParser(object): raise ParseError("please implement _sub_parse on {}".format(type(self))) def sub_parse(self, input_string, ns): - pr_debug(ns, ">.. {}: {} | {}".format(self.type, self.name, input_string)) r = self._sub_parse(input_string, ns) - pr_debug(ns, "<.. {}: {} | {}".format(self.type, self.name, input_string)) return r def build_cmd_args_name(self): @@ -1395,11 +1385,8 @@ class RatbagParserRoot(object): subparser = self.parser - pr_debug(ns, rest) for child in self.children: - pr_debug(ns, ">>> {}: {} | {}".format(child.type, child.name, rest)) child.add_to_subparsers(subs) - pr_debug(ns, "<<< {}: {} | {}".format(child.type, child.name, rest)) ns.subparse = None @@ -1408,7 +1395,6 @@ class RatbagParserRoot(object): ns, rest = subparser.parse_known_args(rest, namespace=ns) if old_rest == rest: break - pr_debug(ns, ns, rest) if ns.subparse: subparser = ns.subparse(rest, ns)