mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor : Remove duplicated code
This commit is contained in:
@@ -284,3 +284,16 @@ QString RiaDefines::defaultDirectoryLabel( RiaDefines::ImportFileType fileType )
|
||||
|
||||
return defaultDirLabel;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RiaDefines::isInjector( WellProductionType wellProductionType )
|
||||
{
|
||||
if ( wellProductionType == RiaDefines::WellProductionType::GAS_INJECTOR ||
|
||||
wellProductionType == RiaDefines::WellProductionType::OIL_INJECTOR ||
|
||||
wellProductionType == RiaDefines::WellProductionType::WATER_INJECTOR )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -192,4 +192,6 @@ enum class WellProductionType : short
|
||||
UNDEFINED_PRODUCTION_TYPE
|
||||
};
|
||||
|
||||
bool isInjector( WellProductionType wellProductionType );
|
||||
|
||||
}; // namespace RiaDefines
|
||||
|
||||
Reference in New Issue
Block a user