summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKirill Simonov <xi@resolvent.net>2014-11-28 11:55:12 -0600
committerKirill Simonov <xi@resolvent.net>2014-11-28 11:55:12 -0600
commit946596172d140497b560e016e581accb0a92cca4 (patch)
treed0674a7a869f20d0357650cb52eaf03cccec6431 /src
parent1dda16859589730cb1a293c56ee132455b86820f (diff)
downloadlibyaml-git-946596172d140497b560e016e581accb0a92cca4.tar.gz
Removed invalid simple key assertion (thank to Jonathan Gray).
Diffstat (limited to 'src')
-rw-r--r--src/scanner.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/scanner.c b/src/scanner.c
index 88d4fa5..5ec0be0 100644
--- a/src/scanner.c
+++ b/src/scanner.c
@@ -1106,13 +1106,6 @@ yaml_parser_save_simple_key(yaml_parser_t *parser)
&& parser->indent == (ptrdiff_t)parser->mark.column);
/*
- * A simple key is required only when it is the first token in the current
- * line. Therefore it is always allowed. But we add a check anyway.
- */
-
- assert(parser->simple_key_allowed || !required); /* Impossible. */
-
- /*
* If the current position may start a simple key, save it.
*/