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;
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 line;
QByteArray debugMessage;
@@ -79,7 +67,6 @@ void QDebugMessageClient::messageReceived(const QByteArray &data)
info.function = QString::fromUtf8(function);
emit message(QtMsgType(type), QString::fromUtf8(debugMessage), info);
}
}
}
} // namespace QmlDebug

View File

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

View File

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