From: Michael Wallner Date: Fri, 10 Dec 2021 22:02:04 +0000 (+0100) Subject: rm unused code X-Git-Tag: v0.1.0~88 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=6de680b4b20071af16a4e455a84e9fbf487e393b;p=awesomized%2Fext-ion rm unused code --- diff --git a/ion_private.h b/ion_private.h index e34a78e..787ba18 100644 --- a/ion_private.h +++ b/ion_private.h @@ -1016,18 +1016,6 @@ static inline void php_ion_serialize_object_magic(php_ion_serializer *ser, zend_ } } -static inline zend_string *fq_enum_case(zend_object *zobject) -{ - zval *cn = zend_enum_fetch_case_name(zobject); - zend_string *en = zend_string_alloc(zobject->ce->name->len + Z_STRLEN_P(cn) + strlen("::"), 0); - memcpy(en->val, zobject->ce->name->val, zobject->ce->name->len); - en->val[zobject->ce->name->len] = ':'; - en->val[zobject->ce->name->len + 1] = ':'; - memcpy(&en->val[zobject->ce->name->len + 2], Z_STRVAL_P(cn), Z_STRLEN_P(cn)); - en->val[en->len] = 0; - return en; -} - static inline void php_ion_serialize_object_enum(php_ion_serializer *ser, zend_object *zobject) { ION_STRING is;