Remove outdated TODO

This commit is contained in:
Nyall Dawson 2017-12-01 14:28:59 +10:00
parent feec186fbf
commit c3e840115b

View File

@ -715,36 +715,6 @@ void QgsLayoutView::deleteSelectedItems()
return;
}
#if 0 //TODO
if ( mCurrentTool == QgsComposerView::EditNodesItem )
{
if ( mNodesItemIndex != -1 )
{
composition()->beginCommand( mNodesItem, tr( "Remove item node" ) );
if ( mNodesItem->removeNode( mNodesItemIndex ) )
{
composition()->endCommand();
if ( mNodesItem->nodesSize() > 0 )
{
mNodesItemIndex = mNodesItem->selectedNode();
// setSelectedNode( mNodesItem, mNodesItemIndex );
}
else
{
mNodesItemIndex = -1;
mNodesItem = nullptr;
}
scene()->update();
}
else
{
composition()->cancelCommand();
}
}
}
else
{
#endif
const QList<QgsLayoutItem *> selectedItems = currentLayout()->selectedLayoutItems();
currentLayout()->undoStack()->beginMacro( tr( "Delete Items" ) );
@ -755,10 +725,6 @@ void QgsLayoutView::deleteSelectedItems()
}
currentLayout()->undoStack()->endMacro();
currentLayout()->project()->setDirty( true );
#if 0
}
#endif
}
void QgsLayoutView::groupSelectedItems()