remove pointless conditional from reloadCmdLine()
the function is (nowadays) only called when the condition is true. Change-Id: I014f736c28c37b066a3f62e22f9002c025734386 Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>bb10
parent
1967fc7f63
commit
1183e59dd9
|
|
@ -1177,7 +1177,6 @@ void Configure::readLicense()
|
|||
|
||||
void Configure::reloadCmdLine(int idx)
|
||||
{
|
||||
if (dictionary[ "REDO" ] == "yes") {
|
||||
QFile inFile(buildPathMangled + "/config.opt");
|
||||
if (!inFile.open(QFile::ReadOnly)) {
|
||||
inFile.setFileName(buildPath + "/config.opt");
|
||||
|
|
@ -1190,7 +1189,6 @@ void Configure::reloadCmdLine(int idx)
|
|||
QTextStream inStream(&inFile);
|
||||
while (!inStream.atEnd())
|
||||
configCmdLine.insert(idx++, inStream.readLine().trimmed());
|
||||
}
|
||||
}
|
||||
|
||||
void Configure::saveCmdLine()
|
||||
|
|
|
|||
Loading…
Reference in New Issue