Refactor code.

This commit is contained in:
CismonX 2018-09-16 16:29:55 +08:00
parent 8af47a3960
commit 28e2cef92c
2 changed files with 3 additions and 35 deletions

View File

@ -520,9 +520,9 @@ static zend_always_inline uint32_t advance_idx(zend_array* ht, Bucket* ref, uint
return 0;
}
static zend_always_inline void tail_cleanup(zend_array* ht,
Bucket* ref, uint32_t offset, uint32_t max_offset, zend_bool packed,
equal_check_func_t eql, zend_bool subtract, zend_bool del_dup)
static zend_always_inline void tail_cleanup(zend_array* ht, Bucket* ref, uint32_t offset,
uint32_t max_offset, zend_bool packed, equal_check_func_t eql, zend_bool subtract,
zend_bool del_dup)
{
if (subtract) {
if (!del_dup) {

View File

@ -590,38 +590,6 @@ class Collection implements ArrayAccess, Countable
*/
function none($predicate) {}
/**
* This method is implemented in handlers.unset_dimension.
* There's no method with name 'offsetUnset'.
*
* @internal
*/
function offsetUnset($key) {}
/**
* This method is implemented in handlers.write_dimension.
* There's no method with name 'offsetSet'.
*
* @internal
*/
function offsetSet($key, $value) {}
/**
* This method is implemented in handlers.read_dimension.
* There's no method with name 'offsetGet'.
*
* @internal
*/
function offsetGet($key) {}
/**
* This method is implemented in handlers.has_dimension.
* There's no method with name 'offsetExists'.
*
* @internal
*/
function offsetExists($key) {}
/**
* Performs the given action on each element and returns the collection itself afterwards.
*