mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove duplicate function
This commit is contained in:
parent
6b18493599
commit
d7f70f5c9f
@ -302,16 +302,6 @@ bool RifEclipseUserDataParserTools::hasOnlyValidDoubleValues(const std::vector<s
|
|||||||
return onlyValidValues;
|
return onlyValidValues;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
///
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
|
||||||
bool RifEclipseUserDataParserTools::hasDateUnit(const std::string& word)
|
|
||||||
{
|
|
||||||
if (word.find("DATE") != std::string::npos) return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@ -870,7 +860,7 @@ ColumnInfo ColumnInfo::createColumnInfo(const std::string& quantity, const std::
|
|||||||
{
|
{
|
||||||
ColumnInfo ci(adr, unit);
|
ColumnInfo ci(adr, unit);
|
||||||
|
|
||||||
if (RifEclipseUserDataParserTools::hasDateUnit(quantity))
|
if (RifEclipseUserDataKeywordTools::isDate(quantity))
|
||||||
{
|
{
|
||||||
ci.isStringData = true;
|
ci.isStringData = true;
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,6 @@ public:
|
|||||||
static bool hasTimeUnit(const std::string& line);
|
static bool hasTimeUnit(const std::string& line);
|
||||||
static bool hasOnlyValidDoubleValues(const std::vector<std::string>& words, std::vector<double>* doubleValues = nullptr);
|
static bool hasOnlyValidDoubleValues(const std::vector<std::string>& words, std::vector<double>* doubleValues = nullptr);
|
||||||
|
|
||||||
static bool hasDateUnit(const std::string& word);
|
|
||||||
static bool isValidTableData(size_t columnCount, const std::string& line);
|
static bool isValidTableData(size_t columnCount, const std::string& line);
|
||||||
|
|
||||||
static TableData tableDataFromText(std::stringstream& data, std::vector<std::string>* errorText = nullptr);
|
static TableData tableDataFromText(std::stringstream& data, std::vector<std::string>* errorText = nullptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user