Commit 4b3890ee authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: remove dead code

Change-Id: I1b06ed78d3942607543a0b18eba8c369c15d5e22
Reviewed-on: http://codereview.qt.nokia.com/4085

Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 16b42121
......@@ -548,11 +548,6 @@ void BreakWindow::contextMenuEvent(QContextMenuEvent *ev)
BreakpointModelIds selectedIds = handler->findBreakpointsByIndex(selectedIndices);
const int rowCount = model()->rowCount();
unsigned engineCapabilities = AllDebuggerCapabilities;
if (!selectedIndices.isEmpty())
if (const unsigned ec = model()->data(selectedIndices.front(), EngineCapabilitiesRole).toUInt())
engineCapabilities = ec;
QAction *deleteAction = new QAction(tr("Delete Breakpoint"), &menu);
deleteAction->setEnabled(!selectedIds.isEmpty());
......@@ -566,7 +561,7 @@ void BreakWindow::contextMenuEvent(QContextMenuEvent *ev)
const QModelIndex index = indexUnderMouse.sibling(indexUnderMouse.row(), 2);
const QString file = index.data().toString();
if (!file.isEmpty()) {
for (int i = 0; i < rowCount; i++)
for (int i = 0; i != rowCount; ++i)
if (index.data().toString() == file)
breakpointsInFile.append(handler->findBreakpointByIndex(index));
if (breakpointsInFile.size() > 1) {
......
Markdown is supported
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