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
|
ln = prevLines + ln
|
||||||
prevLines = ""
|
prevLines = ""
|
||||||
|
|
||||||
if self.parseCandidateValues(ln):
|
self.parseDefineName(ln)
|
||||||
continue
|
|
||||||
|
|
||||||
if self.parseDefineName(ln):
|
|
||||||
continue
|
|
||||||
|
|
||||||
# Ignore candidates in the metadata file.
|
|
||||||
self.candHeatPins = []
|
|
||||||
self.candThermPins = []
|
|
||||||
self.candProcessors = []
|
|
||||||
self.candClocks = []
|
|
||||||
self.tempTables = {}
|
|
||||||
gatheringHelpText = False
|
gatheringHelpText = False
|
||||||
|
|
||||||
prevLines = ""
|
prevLines = ""
|
||||||
for ln in self.userBuffer:
|
for ln in self.userBuffer:
|
||||||
if gatheringHelpText:
|
if gatheringHelpText:
|
||||||
|
|
|
||||||
|
|
@ -229,11 +229,9 @@ class PrinterPanel(wx.Panel):
|
||||||
ln = prevLines + ln
|
ln = prevLines + ln
|
||||||
prevLines = ""
|
prevLines = ""
|
||||||
|
|
||||||
if self.parseDefineName(ln):
|
self.parseDefineName(ln)
|
||||||
continue
|
|
||||||
|
|
||||||
gatheringHelpText = False
|
gatheringHelpText = False
|
||||||
|
|
||||||
prevLines = ""
|
prevLines = ""
|
||||||
for ln in self.userBuffer:
|
for ln in self.userBuffer:
|
||||||
if gatheringHelpText:
|
if gatheringHelpText:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue