forked from qt-creator/qt-creator
debugger: remove unused code
This commit is contained in:
@@ -545,34 +545,6 @@ void BreakHandler::loadBreakpoints()
|
|||||||
//qDebug() << "LOADED BREAKPOINTS" << this << list.size();
|
//qDebug() << "LOADED BREAKPOINTS" << this << list.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BreakHandler::resetBreakpoints()
|
|
||||||
{
|
|
||||||
for (int index = size(); --index >= 0;) {
|
|
||||||
BreakpointData *data = at(index);
|
|
||||||
data->pending = true;
|
|
||||||
data->bpMultiple = false;
|
|
||||||
data->bpEnabled = true;
|
|
||||||
data->bpNumber.clear();
|
|
||||||
data->bpFuncName.clear();
|
|
||||||
data->bpFileName.clear();
|
|
||||||
data->bpLineNumber.clear();
|
|
||||||
data->bpCorrectedLineNumber.clear();
|
|
||||||
data->bpCondition.clear();
|
|
||||||
data->bpIgnoreCount.clear();
|
|
||||||
data->bpThreadSpec.clear();
|
|
||||||
data->bpAddress.clear();
|
|
||||||
// Keep marker data if it was primary.
|
|
||||||
if (data->markerFileName() != data->fileName)
|
|
||||||
data->setMarkerFileName(QString());
|
|
||||||
if (data->markerLineNumber() != data->lineNumber.toInt())
|
|
||||||
data->setMarkerLineNumber(0);
|
|
||||||
}
|
|
||||||
m_enabled.clear();
|
|
||||||
m_disabled.clear();
|
|
||||||
m_removed.clear();
|
|
||||||
m_inserted.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
void BreakHandler::updateMarkers()
|
void BreakHandler::updateMarkers()
|
||||||
{
|
{
|
||||||
for (int index = 0; index != size(); ++index)
|
for (int index = 0; index != size(); ++index)
|
||||||
@@ -981,7 +953,6 @@ void BreakHandler::saveSessionData()
|
|||||||
{
|
{
|
||||||
QTC_ASSERT(m_engine->isSessionEngine(), return);
|
QTC_ASSERT(m_engine->isSessionEngine(), return);
|
||||||
saveBreakpoints();
|
saveBreakpoints();
|
||||||
updateMarkers();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BreakHandler::loadSessionData()
|
void BreakHandler::loadSessionData()
|
||||||
|
|||||||
@@ -110,7 +110,6 @@ private:
|
|||||||
void markerUpdated(BreakpointMarker *, int lineNumber);
|
void markerUpdated(BreakpointMarker *, int lineNumber);
|
||||||
void loadBreakpoints();
|
void loadBreakpoints();
|
||||||
void saveBreakpoints();
|
void saveBreakpoints();
|
||||||
void resetBreakpoints();
|
|
||||||
void removeBreakpointHelper(int index);
|
void removeBreakpointHelper(int index);
|
||||||
|
|
||||||
const QIcon m_breakpointIcon;
|
const QIcon m_breakpointIcon;
|
||||||
|
|||||||
@@ -2614,7 +2614,6 @@ void DebuggerPlugin::createNewDock(QWidget *widget)
|
|||||||
|
|
||||||
void DebuggerPlugin::runControlStarted(DebuggerRunControl *runControl)
|
void DebuggerPlugin::runControlStarted(DebuggerRunControl *runControl)
|
||||||
{
|
{
|
||||||
qDebug() << "RUNCONTROL STARTED: " << runControl;
|
|
||||||
d->connectEngine(runControl->engine());
|
d->connectEngine(runControl->engine());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2622,7 +2621,6 @@ void DebuggerPlugin::runControlFinished(DebuggerRunControl *runControl)
|
|||||||
{
|
{
|
||||||
Q_UNUSED(runControl);
|
Q_UNUSED(runControl);
|
||||||
d->disconnectEngine();
|
d->disconnectEngine();
|
||||||
qDebug() << "RUNCONTROL FINISHED: " << runControl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DebuggerEngine *DebuggerPlugin::sessionTemplate()
|
DebuggerEngine *DebuggerPlugin::sessionTemplate()
|
||||||
|
|||||||
Reference in New Issue
Block a user