Skip to content

Commit

Permalink
Merge pull request #236 from tlsa/tlsa/cleanup-copy
Browse files Browse the repository at this point in the history
Copy: Remove commented out code
  • Loading branch information
tlsa authored Jul 20, 2024
2 parents e696cb0 + 9a57d9f commit 2eccbea
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2eccbea

Please sign in to comment.