From: Kirill Simonov Date: Fri, 28 Nov 2014 17:55:12 +0000 (-0600) Subject: Removed invalid simple key assertion (thank to Jonathan Gray). X-Git-Tag: upstream/0.1.7^2~8 X-Git-Url: http://andersk.mit.edu/gitweb/libyaml.git/commitdiff_plain/946596172d140497b560e016e581accb0a92cca4 Removed invalid simple key assertion (thank to Jonathan Gray). --- diff --git a/src/scanner.c b/src/scanner.c index 88d4fa5..5ec0be0 100644 --- a/src/scanner.c +++ b/src/scanner.c @@ -1105,13 +1105,6 @@ yaml_parser_save_simple_key(yaml_parser_t *parser) int required = (!parser->flow_level && 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. */