mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Remove commented code
This commit is contained in:
parent
8a0545336b
commit
553ef38944
@ -170,88 +170,6 @@ bool RifCsvUserDataParser::parseData(const QString& data, const AsciiDataParseOp
|
||||
TableData td("", "", cols);
|
||||
m_tableData = td;
|
||||
return true;
|
||||
|
||||
//std::string stdData = data.toStdString();
|
||||
//bool isFixedWidth = RifEclipseUserDataParserTools::isFixedWidthHeader(stdData);
|
||||
|
||||
//std::stringstream streamData;
|
||||
//streamData.str(stdData);
|
||||
|
||||
//std::vector<TableData> rawTables;
|
||||
|
||||
//do
|
||||
//{
|
||||
// std::vector<std::string> errorStrings;
|
||||
|
||||
// TableData table;
|
||||
|
||||
// if (isFixedWidth)
|
||||
// {
|
||||
// auto columnInfos = RifEclipseUserDataParserTools::columnInfoForFixedColumnWidth(streamData);
|
||||
// table = TableData("", "", "", columnInfos);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// table = RifEclipseUserDataParserTools::tableDataFromText(streamData, &errorStrings);
|
||||
// }
|
||||
|
||||
// if (m_errorText)
|
||||
// {
|
||||
// for (auto s : errorStrings)
|
||||
// {
|
||||
// QString errorText = QString("\n%1").arg(QString::fromStdString(s));
|
||||
// m_errorText->append(errorText);
|
||||
// }
|
||||
// }
|
||||
|
||||
// std::vector<ColumnInfo>& columnInfos = table.columnInfos();
|
||||
// int columnCount = static_cast<int>(columnInfos.size());
|
||||
// if (columnCount == 0) break;
|
||||
|
||||
// int stepTypeIndex = -1;
|
||||
// for (size_t i = 0; i < columnInfos.size(); i++)
|
||||
// {
|
||||
// if (RifEclipseUserDataKeywordTools::isStepType(columnInfos[i].summaryAddress.quantityName()))
|
||||
// {
|
||||
// stepTypeIndex = static_cast<int>(i);
|
||||
// }
|
||||
// }
|
||||
|
||||
// std::string line;
|
||||
// std::getline(streamData, line);
|
||||
|
||||
// do
|
||||
// {
|
||||
// QString qLine = QString::fromStdString(line);
|
||||
// QStringList entries = qLine.split(" ", QString::SkipEmptyParts);
|
||||
|
||||
// if (stepTypeIndex > -1 &&
|
||||
// (unsigned int)entries.size() < columnInfos.size())
|
||||
// {
|
||||
// entries.insert(stepTypeIndex, " ");
|
||||
// }
|
||||
|
||||
// if (entries.size() < columnCount) break;
|
||||
|
||||
// for (int i = 0; i < columnCount; i++)
|
||||
// {
|
||||
// if (columnInfos[i].dataType == ColumnInfo::NUMERIC)
|
||||
// {
|
||||
// double entry = entries[i].toDouble();
|
||||
// columnInfos[i].values.push_back(entry);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// columnInfos[i].textValues.push_back(entries[i].toStdString());
|
||||
// }
|
||||
// }
|
||||
// } while (std::getline(streamData, line));
|
||||
|
||||
// rawTables.push_back(table);
|
||||
|
||||
//} while (streamData.good());
|
||||
|
||||
//m_tableDatas = RifEclipseUserDataParserTools::mergeEqualTimeSteps(rawTables);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user