Skip to content

Commit 6bb5c9a

Browse files
pipboy96Hainish
authored andcommitted
Remove GPL2 code from rules test (EFForg#18061)
1 parent bc184d8 commit 6bb5c9a

3 files changed

Lines changed: 0 additions & 513 deletions

File tree

test/rules/src/https_everywhere_checker/check_rules.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,6 @@ def cli():
366366
metricClass = getMetricClass(metricName)
367367
metric = metricClass()
368368

369-
# Debugging options, graphviz dump
370-
dumpGraphvizTrie = False
371-
if config.has_option("debug", "dump_graphviz_trie"):
372-
dumpGraphvizTrie = config.getboolean("debug", "dump_graphviz_trie")
373-
if dumpGraphvizTrie:
374-
graphvizFile = config.get("debug", "graphviz_file")
375-
exitAfterDump = config.getboolean("debug", "exit_after_dump")
376-
377369
if args.rule_files:
378370
xmlFnames = args.rule_files
379371
else:
@@ -425,17 +417,6 @@ def cli():
425417
trie.addRuleset(ruleset)
426418
rulesets.append(ruleset)
427419

428-
# Trie is built now, dump it if it's set in config
429-
if dumpGraphvizTrie:
430-
logging.debug("Dumping graphviz ruleset trie")
431-
graph = trie.generateGraphizGraph()
432-
if graphvizFile == "-":
433-
graph.dot()
434-
else:
435-
with open(graphvizFile, "w") as gvFd:
436-
graph.dot(gvFd)
437-
if exitAfterDump:
438-
sys.exit(0)
439420
fetchOptions = http_client.FetchOptions(config)
440421
fetchers = list()
441422

@@ -461,7 +442,6 @@ def cli():
461442
resQueue = queue.Queue()
462443
startTime = time.time()
463444
testedUrlPairCount = 0
464-
config.getboolean("debug", "exit_after_dump")
465445

466446
for i in range(threadCount):
467447
t = UrlComparisonThread(

0 commit comments

Comments
 (0)