From d5d6ba7b8c9fc8cfcaa68d1bcdff2478efd30aaa Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Wed, 2 Dec 2009 14:26:06 +0100 Subject: [PATCH] s60devices: remove some dead code, minor whitespace --- src/plugins/qt4projectmanager/qt-s60/s60devices.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/qt4projectmanager/qt-s60/s60devices.cpp b/src/plugins/qt4projectmanager/qt-s60/s60devices.cpp index d77db8e0741..1b1497d28fc 100644 --- a/src/plugins/qt4projectmanager/qt-s60/s60devices.cpp +++ b/src/plugins/qt4projectmanager/qt-s60/s60devices.cpp @@ -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 -- GitLab