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