diff --git a/ApplicationCode/Commands/WellPathCommands/RicNewEditableWellPathFeature.cpp b/ApplicationCode/Commands/WellPathCommands/RicNewEditableWellPathFeature.cpp index 2d13ae1edd..ddb1371ea7 100644 --- a/ApplicationCode/Commands/WellPathCommands/RicNewEditableWellPathFeature.cpp +++ b/ApplicationCode/Commands/WellPathCommands/RicNewEditableWellPathFeature.cpp @@ -86,8 +86,6 @@ void RicNewEditableWellPathFeature::onActionTriggered(bool isChecked) newModeledWellPath->geometryDefinition()->enableTargetPointPicking(true); - RimProject* project; - wellPathCollection->firstAncestorOrThisOfTypeAsserted(project); project->scheduleCreateDisplayModelAndRedrawAllViews(); Riu3DMainWindowTools::selectAsCurrentItem(newModeledWellPath->geometryDefinition());