Temporary LGR : Remove invalid test for eclipse view

This commit is contained in:
Magne Sjaastad 2018-11-06 11:07:00 +01:00
parent f36ca9b49d
commit fcd9c78dcf

View File

@ -186,10 +186,6 @@ void RicCreateTemporaryLgrFeature::setupActionLook(QAction* actionToSetup)
//--------------------------------------------------------------------------------------------------
void RicCreateTemporaryLgrFeature::createLgr(const LgrInfo& lgrInfo, RigMainGrid* mainGrid)
{
auto app = RiaApplication::instance();
auto eclipseView = dynamic_cast<RimEclipseView*>(app->activeReservoirView());
if (!eclipseView) return;
int lgrId = lgrInfo.id;
size_t totalCellCount = mainGrid->globalCellArray().size();
size_t lgrCellCount = lgrInfo.cellCount();