Removed ParserXItem's scan with expected elements. Only SINGLE and ALL is now allowed

This commit is contained in:
Kristian Flikka
2013-08-23 14:35:47 +02:00
parent 375332eb99
commit 771167c02e
9 changed files with 6 additions and 56 deletions

View File

@@ -44,14 +44,9 @@ namespace Opm {
}
DeckItemConstPtr ParserIntItem::scan(size_t expectedItems, RawRecordPtr rawRecord) const {
return scan__(expectedItems, false, rawRecord);
}
DeckItemConstPtr ParserIntItem::scan(RawRecordPtr rawRecord) const {
if (sizeType() == SINGLE)
return scan(1U, rawRecord);
return scan__(1U, false, rawRecord);
else if (sizeType() == ALL)
return scan__(0, true, rawRecord);
else