From d3625c0a90fbc9ee306738d59d8c04c165377c1f Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Tue, 27 Feb 2001 20:26:16 +0000 Subject: [PATCH] - Nuke zval_del_ref() --- Zend/zend_variables.c | 10 ---------- Zend/zend_variables.h | 1 - 2 files changed, 11 deletions(-) diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index 7fed1b6fb2..fb7c1a1642 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -90,16 +90,6 @@ ZEND_API void _zval_dtor(zval *zvalue ZEND_FILE_LINE_DC) } -ZEND_API void zval_del_ref(zval **p) -{ - (*p)->refcount--; - if ((*p)->refcount==0) { - zval_dtor(*p); - FREE_ZVAL(*p); - } -} - - ZEND_API void zval_add_ref(zval **p) { (*p)->refcount++; diff --git a/Zend/zend_variables.h b/Zend/zend_variables.h index f468be61a0..7dd6f8acd3 100644 --- a/Zend/zend_variables.h +++ b/Zend/zend_variables.h @@ -49,7 +49,6 @@ END_EXTERN_C() ZEND_API void zval_add_ref(zval **p); -ZEND_API void zval_del_ref(zval **p); #define ZVAL_DESTRUCTOR (void (*)(void *)) zval_dtor_wrapper #define ZVAL_PTR_DTOR (void (*)(void *)) zval_ptr_dtor_wrapper -- 2.50.1