Commit 90b0d561 authored by David Schulz's avatar David Schulz
Browse files

Cdb: Remove unused CdbCommand member.



Change-Id: I716cd00b47b8ae52d497817f0849f608222bfd33
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent c02d9c92
...@@ -218,12 +218,11 @@ class CdbCommand ...@@ -218,12 +218,11 @@ class CdbCommand
{ {
public: public:
CdbCommand() CdbCommand()
: token(0), isBuiltin(true) : token(0)
{} {}
CdbCommand(bool builtin, const QByteArray &cmd, int token, CdbCommand(const QByteArray &cmd, int token, CdbEngine::CommandHandler h, unsigned nc)
CdbEngine::CommandHandler h, unsigned nc) : token(token), handler(h)
: token(token), isBuiltin(builtin), handler(h)
{ {
response.command = cmd; response.command = cmd;
response.commandSequence = nc; response.commandSequence = nc;
...@@ -231,7 +230,6 @@ public: ...@@ -231,7 +230,6 @@ public:
int token; int token;
bool isBuiltin;
CdbEngine::CommandHandler handler; CdbEngine::CommandHandler handler;
CdbResponse response; // FIXME: remove. CdbResponse response; // FIXME: remove.
...@@ -1237,7 +1235,7 @@ void CdbEngine::postBuiltinCommand(const QByteArray &cmd, ...@@ -1237,7 +1235,7 @@ void CdbEngine::postBuiltinCommand(const QByteArray &cmd,
showMessage(QString::fromLocal8Bit(cmd), LogInput); showMessage(QString::fromLocal8Bit(cmd), LogInput);
const int token = m_nextCommandToken++; const int token = m_nextCommandToken++;
CdbCommandPtr pendingCommand(new CdbCommand(true, cmd, token, handler, nextCommandFlag)); CdbCommandPtr pendingCommand(new CdbCommand(cmd, token, handler, nextCommandFlag));
m_builtinCommandQueue.push_back(pendingCommand); m_builtinCommandQueue.push_back(pendingCommand);
// Enclose command in echo-commands for token // Enclose command in echo-commands for token
...@@ -1280,7 +1278,7 @@ void CdbEngine::postExtensionCommand(const QByteArray &cmd, ...@@ -1280,7 +1278,7 @@ void CdbEngine::postExtensionCommand(const QByteArray &cmd,
showMessage(QString::fromLocal8Bit(fullCmd), LogInput); showMessage(QString::fromLocal8Bit(fullCmd), LogInput);
CdbCommandPtr pendingCommand(new CdbCommand(false, fullCmd, token, handler, nextCommandFlag)); CdbCommandPtr pendingCommand(new CdbCommand(fullCmd, token, handler, nextCommandFlag));
m_extensionCommandQueue.push_back(pendingCommand); m_extensionCommandQueue.push_back(pendingCommand);
// Enclose command in echo-commands for token // Enclose command in echo-commands for token
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment