mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Removed the implicit sequence code (since it's not used any more)
This commit is contained in:
@@ -67,7 +67,6 @@ namespace YAML
|
||||
// split based on start token
|
||||
switch(pScanner->peek().type) {
|
||||
case TT_BLOCK_SEQ_START: ParseBlock(pScanner, state); break;
|
||||
case TT_BLOCK_ENTRY: ParseImplicit(pScanner, state); break;
|
||||
case TT_FLOW_SEQ_START: ParseFlow(pScanner, state); break;
|
||||
default: break;
|
||||
}
|
||||
@@ -104,26 +103,6 @@ namespace YAML
|
||||
}
|
||||
}
|
||||
|
||||
void Sequence::ParseImplicit(Scanner *pScanner, const ParserState& state)
|
||||
{
|
||||
while(1) {
|
||||
// we're actually *allowed* to have no tokens at some point
|
||||
if(pScanner->empty())
|
||||
break;
|
||||
|
||||
// and we end at anything other than a block entry
|
||||
Token& token = pScanner->peek();
|
||||
if(token.type != TT_BLOCK_ENTRY)
|
||||
break;
|
||||
|
||||
pScanner->pop();
|
||||
|
||||
Node *pNode = new Node;
|
||||
m_data.push_back(pNode);
|
||||
pNode->Parse(pScanner, state);
|
||||
}
|
||||
}
|
||||
|
||||
void Sequence::ParseFlow(Scanner *pScanner, const ParserState& state)
|
||||
{
|
||||
// eat start token
|
||||
|
@@ -39,7 +39,6 @@ namespace YAML
|
||||
|
||||
private:
|
||||
void ParseBlock(Scanner *pScanner, const ParserState& state);
|
||||
void ParseImplicit(Scanner *pScanner, const ParserState& state);
|
||||
void ParseFlow(Scanner *pScanner, const ParserState& state);
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user