forked from qt-creator/qt-creator
s60devices: remove some dead code, minor whitespace
This commit is contained in:
@@ -247,7 +247,6 @@ bool S60Devices::detectQtForDevices()
|
|||||||
const QString indicator("\\src\\corelib\\kernel\\qobject.h");
|
const QString indicator("\\src\\corelib\\kernel\\qobject.h");
|
||||||
int indicatorlength = indicator.length();
|
int indicatorlength = indicator.length();
|
||||||
QByteArray buffer;
|
QByteArray buffer;
|
||||||
QByteArray previousBuffer;
|
|
||||||
int index = -1;
|
int index = -1;
|
||||||
while (!qtDll.atEnd()) {
|
while (!qtDll.atEnd()) {
|
||||||
buffer = qtDll.read(10000);
|
buffer = qtDll.read(10000);
|
||||||
@@ -256,10 +255,10 @@ bool S60Devices::detectQtForDevices()
|
|||||||
break;
|
break;
|
||||||
if (!qtDll.atEnd())
|
if (!qtDll.atEnd())
|
||||||
qtDll.seek(qtDll.pos()-indicatorlength);
|
qtDll.seek(qtDll.pos()-indicatorlength);
|
||||||
previousBuffer = buffer;
|
|
||||||
}
|
}
|
||||||
int lastIndex = index;
|
int lastIndex = index;
|
||||||
while (index >= 0 && buffer.at(index)) --index;
|
while (index >= 0 && buffer.at(index))
|
||||||
|
--index;
|
||||||
if (index < 0) { // this is untested
|
if (index < 0) { // this is untested
|
||||||
} else {
|
} else {
|
||||||
index += 2; // the 0 and another byte for some reason
|
index += 2; // the 0 and another byte for some reason
|
||||||
|
Reference in New Issue
Block a user