Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
b789a1c5
Commit
b789a1c5
authored
Aug 24, 2009
by
Jesse Beder
Browse files
Removed the implicit sequence code (since it's not used any more)
parent
a1460169
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
22 deletions
+0
-22
src/sequence.cpp
src/sequence.cpp
+0
-21
src/sequence.h
src/sequence.h
+0
-1
No files found.
src/sequence.cpp
View file @
b789a1c5
...
...
@@ -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
...
...
src/sequence.h
View file @
b789a1c5
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment