Skip to content

Commit

Permalink
Remove unused fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriben committed Mar 13, 2024
1 parent fb65280 commit 76ae619
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ RimWellPathImport::RimWellPathImport()
{
CAF_PDM_InitObject( "RimWellPathImport" );

CAF_PDM_InitField( &wellTypeSurvey, "WellTypeSurvey", true, "Survey" );
caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &wellTypeSurvey );

CAF_PDM_InitField( &wellTypePlans, "WellTypePlans", true, "Plans" );
caf::PdmUiNativeCheckBoxEditor::configureFieldForEditor( &wellTypePlans );

caf::AppEnum<RimWellPathImport::UtmFilterEnum> defaultUtmMode = UTM_FILTER_OFF;
CAF_PDM_InitField( &utmFilterMode, "UtmMode", defaultUtmMode, "Utm Filter" );

Expand Down Expand Up @@ -212,22 +206,6 @@ void RimWellPathImport::defineObjectEditorAttribute( QString uiConfigName, caf::
}
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellPathImport::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering )
{
// NOTE: If the default uiOrdering is used, the first checkbox is not possible to interact with using the mouse
// (only keyboard). This is a workaround to make the first checkbox work.
//
// Related issue, but with an opposite fix
// https://github.com/OPM/ResInsight/commit/51443d7aa33abebfaa179e645c729fde19a64666
//
auto group = uiOrdering.addNewGroup( "Well Types" );
group->add( &wellTypeSurvey );
group->add( &wellTypePlans );
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ class RimWellPathImport : public caf::PdmObject
RimWellPathImport();
~RimWellPathImport() override;

caf::PdmField<bool> wellTypeSurvey;
caf::PdmField<bool> wellTypePlans;

caf::PdmField<caf::AppEnum<UtmFilterEnum>> utmFilterMode;
caf::PdmField<double> north;
caf::PdmField<double> south;
Expand All @@ -57,7 +54,6 @@ class RimWellPathImport : public caf::PdmObject
void initAfterRead() override;
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
void defineObjectEditorAttribute( QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override;
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;

void updateFieldVisibility();

Expand Down

0 comments on commit 76ae619

Please sign in to comment.