remove pointless code path
there is no need to consider the "-framework foo" syntax, as we fully control the list and insert elements exclusively as "-framework" "foo" a few lines down. Change-Id: I95fa8b46f53673ea3df1a67a2a44d11f7d679cc6 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
This commit is contained in:
parent
e0470ba2fe
commit
3cd49cb628
@ -582,17 +582,9 @@ UnixMakefileGenerator::processPrlFiles()
|
||||
}
|
||||
bool found = false;
|
||||
for(int x = 0; x < lflags[arch].size(); ++x) {
|
||||
ProString xf = lflags[arch].at(x);
|
||||
if(xf.startsWith("-framework")) {
|
||||
ProString framework;
|
||||
if(xf.length() > 11)
|
||||
framework = xf.mid(11);
|
||||
else
|
||||
framework = lflags[arch].at(++x);
|
||||
if(framework == opt) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
if (lflags[arch].at(x) == "-framework" && lflags[arch].at(++x) == opt) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(!found) {
|
||||
|
Loading…
Reference in New Issue
Block a user