Debugger: Remove old code

Version specific snippets were introduced to
avoid incompatibilities during Qt5 development.

Change-Id: I60fa9beafc9d55b687c08e13cdf531baecb10fbb
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Aurindam Jana
2012-09-28 15:21:04 +02:00
parent fa9dbd3bf6
commit 6067411db4
3 changed files with 11 additions and 27 deletions

View File

@@ -55,18 +55,6 @@ void QDebugMessageClient::messageReceived(const QByteArray &data)
ds >> command; ds >> command;
if (command == "MESSAGE") { if (command == "MESSAGE") {
if (serviceVersion() == 1.0) {
QByteArray messagePacket;
ds >> messagePacket;
QByteArray debugMessage;
int type;
QDataStream ms(messagePacket);
ms >> type >> debugMessage;
QDebugContextInfo info;
emit message(QtMsgType(type), QString::fromUtf8(debugMessage.data()),
info);
} else {
int type; int type;
int line; int line;
QByteArray debugMessage; QByteArray debugMessage;
@@ -80,6 +68,5 @@ void QDebugMessageClient::messageReceived(const QByteArray &data)
emit message(QtMsgType(type), QString::fromUtf8(debugMessage), info); emit message(QtMsgType(type), QString::fromUtf8(debugMessage), info);
} }
} }
}
} // namespace QmlDebug } // namespace QmlDebug

View File

@@ -978,8 +978,6 @@ QmlV8DebuggerClient::~QmlV8DebuggerClient()
void QmlV8DebuggerClient::startSession() void QmlV8DebuggerClient::startSession()
{ {
//Supports v2.0 and above
QTC_ASSERT(serviceVersion() >= CURRENT_SUPPORTED_VERSION, return);
flushSendBuffer(); flushSendBuffer();
d->connect(); d->connect();
//Query for the V8 version. This is //Query for the V8 version. This is

View File

@@ -34,7 +34,6 @@
namespace Debugger { namespace Debugger {
namespace Internal { namespace Internal {
const float CURRENT_SUPPORTED_VERSION = 2.0;
const char V8REQUEST[] = "v8request"; const char V8REQUEST[] = "v8request";
const char V8MESSAGE[] = "v8message"; const char V8MESSAGE[] = "v8message";
const char BREAKONSIGNAL[] = "breakonsignal"; const char BREAKONSIGNAL[] = "breakonsignal";