From 0ff610e8129c39872566c60efa832f95f371ad2e Mon Sep 17 00:00:00 2001 From: Aart Stuurman Date: Tue, 28 Jul 2015 11:41:38 +0200 Subject: removed value::attach() methods, because they were not in use, and were probably broken too --- zend/value.cpp | 44 -------------------------------------------- 1 file changed, 44 deletions(-) (limited to 'zend') diff --git a/zend/value.cpp b/zend/value.cpp index 86b658c..e2d18f1 100644 --- a/zend/value.cpp +++ b/zend/value.cpp @@ -338,50 +338,6 @@ zval *Value::detach() return result; } -/** - * Attach a different zval - * - * This will first detach the current zval, and link the Value object to - * a different zval. - * - * @param val - */ -void Value::attach(struct _zval_struct *val) -{ - // detach first - if (_val) detach(); - - // store the zval - _val = val; - - // add one more reference - Z_ADDREF_P(_val); -} - -/** - * Attach a different zval - * - * This will first detach the current zval, and link the Value object to - * a new zval - * - * @param hashtable - */ -void Value::attach(struct _hashtable *hashtable) -{ - // detach first - if (_val) detach(); - - // construct a new zval - MAKE_STD_ZVAL(_val); - - // store pointer to the hashtable, and mark the zval as an array - Z_ARRVAL_P(_val) = hashtable; - Z_TYPE_P(_val) = IS_ARRAY; - - // add a reference - Z_ADDREF_P(_val); -} - /** * Retrieve the refcount * @return int -- cgit v1.2.3