From c0d8017bd74166aaa70ceff94656d58edd809172 Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Fri, 22 May 2020 20:58:05 +0200 Subject: [PATCH] Remove old debug code --- src/wireviz.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/wireviz.py b/src/wireviz.py index f854c0f..511bfa6 100644 --- a/src/wireviz.py +++ b/src/wireviz.py @@ -43,9 +43,6 @@ class Harness: self.objects[object.name] = object self.objects[object.name].color_mode = self.color_mode - def debug(self): - print(self.objects) - def graphviz(self, print_to_screen=False): with open('output/output.dot','w') as f: with open('input/header.dot','r') as infile: @@ -211,18 +208,6 @@ class Cable: def connect_all_straight(self, from_name, to_name): self.connect(from_name, 'auto', 'auto', to_name, 'auto') - def debug(self): - print(self.name) - print(self.colors) - if len(self.connections) > 0: - for i, x in enumerate(self.connections): - if i < len(self.colors): - s = self.colors[int(x[2]-1)] - else: - s = '--' - # print(self.colors(x[2]) if i < len(self.colors) else '-') - print('{}:{} -- {}({}) -- {}:{}'.format(x[0],x[1],x[2],s,x[3],x[4])) - def graphviz(self): s = '' # print header