]> granicus.if.org Git - json-c/commit
json_object_private: remove _delete field
authorRamiro Polla <ramiro.polla@gmail.com>
Sat, 1 Dec 2018 17:57:22 +0000 (18:57 +0100)
committerRamiro Polla <ramiro.polla@gmail.com>
Thu, 20 Dec 2018 21:26:06 +0000 (22:26 +0100)
commit1f46d2f40ff46095203359ab9e1f0fd2ed66fe8f
tree6ce0aea3a116653dc4b046403873bc123619959c
parent39c9fa0a2bc8e5b185e776a98c2f8408a6ecb780
json_object_private: remove _delete field

This field is set based on o_type when the object is created and it is
not changed during the lifetime of the object. Therefore we can check
o_type to choose the proper delete function in json_object_put(), and
save sizeof(void *) bytes in struct json_object_private.
json_object.c
json_object_private.h