]> granicus.if.org Git - php/commitdiff
Forgot to remove the count method here
authorEtienne Kneuss <colder@php.net>
Thu, 10 Jul 2008 13:16:01 +0000 (13:16 +0000)
committerEtienne Kneuss <colder@php.net>
Thu, 10 Jul 2008 13:16:01 +0000 (13:16 +0000)
ext/spl/spl_sxe.c

index a91bf57286e8fd5d980ebd102a0a8d95e974d899..54234315389ef39c0ec321043debcf04637632be 100755 (executable)
@@ -145,17 +145,6 @@ SPL_METHOD(SimpleXMLIterator, getChildren)
        RETURN_ZVAL(sxe->iter.data, 1, 0);
 }
 
-/* {{{ proto int SimpleXMLIterator::count() U
- Get number of child elements */
-SPL_METHOD(SimpleXMLIterator, count)
-{
-       long count = 0;
-
-       Z_OBJ_HANDLER_P(getThis(), count_elements)(getThis(), &count TSRMLS_CC);
-       
-       RETURN_LONG(count);
-}
-
 static const zend_function_entry spl_funcs_SimpleXMLIterator[] = {
        SPL_ME(SimpleXMLIterator, rewind,                 NULL, ZEND_ACC_PUBLIC)
        SPL_ME(SimpleXMLIterator, valid,                  NULL, ZEND_ACC_PUBLIC)
@@ -164,7 +153,6 @@ static const zend_function_entry spl_funcs_SimpleXMLIterator[] = {
        SPL_ME(SimpleXMLIterator, next,                   NULL, ZEND_ACC_PUBLIC)
        SPL_ME(SimpleXMLIterator, hasChildren,            NULL, ZEND_ACC_PUBLIC)
        SPL_ME(SimpleXMLIterator, getChildren,            NULL, ZEND_ACC_PUBLIC)
-       SPL_ME(SimpleXMLIterator, count,                  NULL, ZEND_ACC_PUBLIC)
        {NULL, NULL, NULL}
 };
 /* }}} */