forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
@@ -80,6 +68,5 @@ void QDebugMessageClient::messageReceived(const QByteArray &data)
|
||||
emit message(QtMsgType(type), QString::fromUtf8(debugMessage), info);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace QmlDebug
|
||||
|
@@ -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
|
||||
|
@@ -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";
|
||||
|
Reference in New Issue
Block a user