mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#579) Removing well log extractors with case references in case destructors
This commit is contained in:
@@ -161,19 +161,6 @@ void RicCloseCaseFeature::deleteEclipseCase(RimEclipseCase* eclipseCase)
|
||||
removeCaseFromAllGroups(eclipseCase);
|
||||
}
|
||||
|
||||
RimProject* project = RiaApplication::instance()->project();
|
||||
if (project)
|
||||
{
|
||||
if (project->mainPlotCollection())
|
||||
{
|
||||
RimWellLogPlotCollection* plotCollection = project->mainPlotCollection()->wellLogPlotCollection();
|
||||
if (plotCollection)
|
||||
{
|
||||
plotCollection->removeExtractors(eclipseCase->reservoirData());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
delete eclipseCase;
|
||||
}
|
||||
|
||||
@@ -193,19 +180,6 @@ void RicCloseCaseFeature::deleteGeoMechCase(RimGeoMechCase* geoMechCase)
|
||||
models->updateConnectedEditors();
|
||||
}
|
||||
|
||||
RimProject* project = RiaApplication::instance()->project();
|
||||
if (project)
|
||||
{
|
||||
if (project->mainPlotCollection())
|
||||
{
|
||||
RimWellLogPlotCollection* plotCollection = project->mainPlotCollection()->wellLogPlotCollection();
|
||||
if (plotCollection)
|
||||
{
|
||||
plotCollection->removeExtractors(geoMechCase->geoMechData());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
delete geoMechCase;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user