diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-13 18:34:35 +0000 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2020-06-13 18:34:35 +0000 |
commit | 5ebfeaedc5413452aff7fa733abfabe97df100e8 (patch) | |
tree | f16c9d1b29453ec3fb6625b91bfe52cbe96b476f /json_object_private.h | |
parent | 4c10712114a79d1abf0d98ac165648a6aa36d45a (diff) | |
download | json-c-5ebfeaedc5413452aff7fa733abfabe97df100e8.tar.gz |
Drop the _delete field from struct json_object and call the type-specific delete functions directly from json_object_put. (Thanks @dota17 for the suggestion in PR #632!)
Diffstat (limited to 'json_object_private.h')
-rw-r--r-- | json_object_private.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/json_object_private.h b/json_object_private.h index 7cd90c2..4413955 100644 --- a/json_object_private.h +++ b/json_object_private.h @@ -29,8 +29,6 @@ struct json_object; typedef SSIZE_T ssize_t; #endif -typedef void (json_object_private_delete_fn)(struct json_object *o); - /* json object int type, support extension*/ typedef enum json_object_int_type { @@ -42,7 +40,6 @@ struct json_object { enum json_type o_type; uint32_t _ref_count; - json_object_private_delete_fn *_delete; json_object_to_json_string_fn *_to_json_string; struct printbuf *_pb; json_object_delete_fn *_user_delete; |