Configtool: remove redundant code.
There is no point in parsing candidates, just to throw away them a moment later.
This commit is contained in:
parent
09bcb0cf42
commit
9d3a064f40
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue