Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused code in yaml_document_delete #103

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/yaml.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ typedef struct yaml_tag_directive_s {

/** The stream encoding. */
typedef enum yaml_encoding_e {
/** Let the parser choose the encoding. */
/** Let the parser choose the encoding. The initial state, invalid at runtime. */
YAML_ANY_ENCODING,
/** The default UTF-8 encoding. */
YAML_UTF8_ENCODING,
Expand Down
5 changes: 0 additions & 5 deletions src/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,13 +1117,8 @@ yaml_document_initialize(yaml_document_t *document,
YAML_DECLARE(void)
yaml_document_delete(yaml_document_t *document)
{
struct {
yaml_error_type_t error;
} context;
yaml_tag_directive_t *tag_directive;

context.error = YAML_NO_ERROR; /* Eliminate a compliler warning. */

assert(document); /* Non-NULL document object is expected. */

while (!STACK_EMPTY(&context, document->nodes)) {
Expand Down