remove unused `size` variable

It looks like `size` and `size_inf` are the same thing, but `size` was
unused and since warnings were being treated like errors, prevented
json-c from compiling.