mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove redundant dtor_obj handlers in intl
Both of these just forward to the default implementation, so just use that directly. This is simpler and benefits from the special-casing of the default implementation.
This commit is contained in:
parent
cde735e630
commit
cdbf3fdcdd
2 changed files with 0 additions and 16 deletions
|
@ -28,13 +28,6 @@ static zend_object_handlers IntlDateFormatter_handlers;
|
||||||
* Auxiliary functions needed by objects of 'IntlDateFormatter' class
|
* Auxiliary functions needed by objects of 'IntlDateFormatter' class
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* {{{ IntlDateFormatter_objects_dtor */
|
|
||||||
static void IntlDateFormatter_object_dtor(zend_object *object )
|
|
||||||
{
|
|
||||||
zend_objects_destroy_object( object );
|
|
||||||
}
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ IntlDateFormatter_objects_free */
|
/* {{{ IntlDateFormatter_objects_free */
|
||||||
void IntlDateFormatter_object_free( zend_object *object )
|
void IntlDateFormatter_object_free( zend_object *object )
|
||||||
{
|
{
|
||||||
|
@ -116,7 +109,6 @@ void dateformat_register_IntlDateFormatter_class( void )
|
||||||
sizeof IntlDateFormatter_handlers);
|
sizeof IntlDateFormatter_handlers);
|
||||||
IntlDateFormatter_handlers.offset = XtOffsetOf(IntlDateFormatter_object, zo);
|
IntlDateFormatter_handlers.offset = XtOffsetOf(IntlDateFormatter_object, zo);
|
||||||
IntlDateFormatter_handlers.clone_obj = IntlDateFormatter_object_clone;
|
IntlDateFormatter_handlers.clone_obj = IntlDateFormatter_object_clone;
|
||||||
IntlDateFormatter_handlers.dtor_obj = IntlDateFormatter_object_dtor;
|
|
||||||
IntlDateFormatter_handlers.free_obj = IntlDateFormatter_object_free;
|
IntlDateFormatter_handlers.free_obj = IntlDateFormatter_object_free;
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
|
@ -352,13 +352,6 @@ static void TimeZone_object_init(TimeZone_object *to)
|
||||||
}
|
}
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* {{{ TimeZone_objects_dtor */
|
|
||||||
static void TimeZone_objects_dtor(zend_object *object)
|
|
||||||
{
|
|
||||||
zend_objects_destroy_object(object);
|
|
||||||
}
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* {{{ TimeZone_objects_free */
|
/* {{{ TimeZone_objects_free */
|
||||||
static void TimeZone_objects_free(zend_object *object)
|
static void TimeZone_objects_free(zend_object *object)
|
||||||
{
|
{
|
||||||
|
@ -406,7 +399,6 @@ U_CFUNC void timezone_register_IntlTimeZone_class(void)
|
||||||
TimeZone_handlers.clone_obj = TimeZone_clone_obj;
|
TimeZone_handlers.clone_obj = TimeZone_clone_obj;
|
||||||
TimeZone_handlers.compare = TimeZone_compare_objects;
|
TimeZone_handlers.compare = TimeZone_compare_objects;
|
||||||
TimeZone_handlers.get_debug_info = TimeZone_get_debug_info;
|
TimeZone_handlers.get_debug_info = TimeZone_get_debug_info;
|
||||||
TimeZone_handlers.dtor_obj = TimeZone_objects_dtor;
|
|
||||||
TimeZone_handlers.free_obj = TimeZone_objects_free;
|
TimeZone_handlers.free_obj = TimeZone_objects_free;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue