Skip to content
Snippets Groups Projects
Commit d5d6ba7b authored by hjk's avatar hjk
Browse files

s60devices: remove some dead code, minor whitespace

parent fdbecf93
No related branches found
No related tags found
No related merge requests found
......@@ -247,7 +247,6 @@ bool S60Devices::detectQtForDevices()
const QString indicator("\\src\\corelib\\kernel\\qobject.h");
int indicatorlength = indicator.length();
QByteArray buffer;
QByteArray previousBuffer;
int index = -1;
while (!qtDll.atEnd()) {
buffer = qtDll.read(10000);
......@@ -256,10 +255,10 @@ bool S60Devices::detectQtForDevices()
break;
if (!qtDll.atEnd())
qtDll.seek(qtDll.pos()-indicatorlength);
previousBuffer = buffer;
}
int lastIndex = index;
while (index >= 0 && buffer.at(index)) --index;
while (index >= 0 && buffer.at(index))
--index;
if (index < 0) { // this is untested
} else {
index += 2; // the 0 and another byte for some reason
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment