Configtool: remove redundant code.

There is no point in parsing candidates, just to throw away them
a moment later.
This commit is contained in:
Markus Hitter 2016-06-01 17:55:48 +02:00
parent 09bcb0cf42
commit 9d3a064f40
2 changed files with 2 additions and 15 deletions

View File

@ -264,20 +264,9 @@ class BoardPanel(wx.Panel):
ln = prevLines + ln
prevLines = ""
if self.parseCandidateValues(ln):
continue
self.parseDefineName(ln)
if self.parseDefineName(ln):
continue
# Ignore candidates in the metadata file.
self.candHeatPins = []
self.candThermPins = []
self.candProcessors = []
self.candClocks = []
self.tempTables = {}
gatheringHelpText = False
prevLines = ""
for ln in self.userBuffer:
if gatheringHelpText:

View File

@ -229,11 +229,9 @@ class PrinterPanel(wx.Panel):
ln = prevLines + ln
prevLines = ""
if self.parseDefineName(ln):
continue
self.parseDefineName(ln)
gatheringHelpText = False
prevLines = ""
for ln in self.userBuffer:
if gatheringHelpText: