mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3512 System : Remove unused functions
This commit is contained in:
@@ -679,29 +679,6 @@ size_t RifOdbReader::componentsCount(const std::string& fieldName, ResultPositio
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
int RifOdbReader::componentIndex(const RifOdbResultKey& result, const std::string& componentName)
|
||||
{
|
||||
std::vector<std::string> compNames = componentNames(result);
|
||||
|
||||
// If there are no component names, we expect the field to be a pure scalar.
|
||||
// Then an empty string is the valid component name
|
||||
if (!compNames.size() && componentName == "") return 0;
|
||||
|
||||
for (size_t i = 0; i < compNames.size(); i++)
|
||||
{
|
||||
if (compNames[i] == componentName)
|
||||
{
|
||||
return static_cast<int>(i);
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@@ -96,7 +96,6 @@ private:
|
||||
const odb_Frame& stepFrame(int stepIndex, int frameIndex) const;
|
||||
odb_Instance* instance(int instanceIndex);
|
||||
|
||||
int componentIndex(const RifOdbResultKey& result, const std::string& componentName);
|
||||
std::vector<std::string> componentNames(const RifOdbResultKey& result);
|
||||
std::map< std::string, std::vector<std::string> > fieldAndComponentNames(ResultPosition position);
|
||||
std::map< RifOdbResultKey, std::vector<std::string> > readResultsMetaData(odb_Odb* odb);
|
||||
|
Reference in New Issue
Block a user