From bbdb730372ab77ffc9cbebdddaf6faad7d2aa6c8 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 26 Oct 2015 10:15:53 +0100 Subject: [PATCH] Removed dead code, RimCaseCollection was handled twice --- ApplicationCode/ProjectDataModel/RimProject.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimProject.cpp b/ApplicationCode/ProjectDataModel/RimProject.cpp index 9a6b4c2259..47c2401594 100644 --- a/ApplicationCode/ProjectDataModel/RimProject.cpp +++ b/ApplicationCode/ProjectDataModel/RimProject.cpp @@ -719,10 +719,6 @@ void RimProject::actionsBasedOnSelection(QMenu& contextMenu) commandIds << "RicPasteEclipseCasesFeature"; commandIds << "RicDeleteItemFeature"; } - else if (dynamic_cast(uiItem)) - { - commandIds << "RicPasteEclipseCasesFeature"; - } else if (dynamic_cast(uiItem)) { commandIds << "RicSaveEclipseResultAsInputPropertyFeature"; @@ -919,8 +915,6 @@ void RimProject::appendScriptItems(QMenu* menu, RimScriptCollection* scriptColle QDir dir(scriptCollection->directory); QMenu* subMenu = menu->addMenu(dir.dirName()); - RiuMainWindow* mainWindow = RiuMainWindow::instance(); - caf::CmdFeatureManager* commandManager = caf::CmdFeatureManager::instance(); CVF_ASSERT(commandManager);