From 9a57d9fca17a6a43ca770bf8a05ecc3fbe75a537 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 20 Jul 2024 14:58:11 +0100 Subject: [PATCH] Copy: Remove commented out code This was never used. --- src/copy.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/copy.c b/src/copy.c index e17e0b6..64176aa 100644 --- a/src/copy.c +++ b/src/copy.c @@ -421,16 +421,6 @@ static cyaml_err_t cyaml__clone_value( cyaml__type_to_str(schema->type), schema->flags & CYAML_FLAG_POINTER ? " (pointer)" : ""); -// if (schema->type == CYAML_MAPPING && -// schema->flags & CYAML_FLAG_POINTER) { -// const uint8_t *mapping_data = data; -// mapping_data = cyaml_data_save_handle_pointer(ctx->config, -// schema, mapping_data, "Copy"); -// if (mapping_data == NULL) { -// return CYAML_ERR_BAD_PARAM_NULL_DATA; -// } -// } - if (!cyaml__is_sequence(schema)) { /* Since sequences extend their allocation for each entry, * they're handled in the sequence-specific code.