diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index 2ca0fe6d..7eac5b9e 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -1184,7 +1184,6 @@ void UBBoardController::ClearUndoStack() { QSet uniqueItems; // go through all stack command - int count = UBApplication::undoStack->count(); for(int i = 0; i < UBApplication::undoStack->count(); i++) { @@ -1214,7 +1213,6 @@ void UBBoardController::ClearUndoStack() // clear stack, and command list UBApplication::undoStack->clear(); - count = UBApplication::undoStack->count(); // go through all unique items, and check, ot on scene, or not. // if not on scene, than item can be deleted @@ -1226,7 +1224,7 @@ void UBBoardController::ClearUndoStack() UBGraphicsScene *scene = (UBGraphicsScene*)item->scene(); if(!scene) { - bool retCode = mActiveScene->deleteItem(item); + mActiveScene->deleteItem(item); } } diff --git a/src/gui/UBActionPalette.cpp b/src/gui/UBActionPalette.cpp index c5cd1ea6..564cf7b4 100644 --- a/src/gui/UBActionPalette.cpp +++ b/src/gui/UBActionPalette.cpp @@ -48,6 +48,7 @@ UBActionPalette::UBActionPalette(Qt::Corner corner, QWidget * parent, Qt::Orient void UBActionPalette::init(Qt::Orientation orientation) { + Q_UNUSED(orientation); m_customCloseProcessing = false; mButtonSize = QSize(32, 32); @@ -57,13 +58,6 @@ void UBActionPalette::init(Qt::Orientation orientation) mToolButtonStyle = Qt::ToolButtonIconOnly; mButtons.clear(); - QBoxLayout *layout = 0; - - if (orientation == Qt::Horizontal) - layout = new QHBoxLayout(this); - else - layout = new QVBoxLayout(this); - updateLayout(); }