]> granicus.if.org Git - php/commitdiff
Remove unused functions
authorPeter Kokot <peterkokot@gmail.com>
Tue, 7 May 2019 01:07:21 +0000 (03:07 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Wed, 8 May 2019 20:02:39 +0000 (22:02 +0200)
- zend_mm_bitset_find_zero
- zend_mm_bitset_find_one
- zend_mm_bitset_find_zero_and_set
- zend_is_by_ref_func_arg_fetch

Zend/zend_alloc.c
Zend/zend_execute.c

index 3531e79df4b9c54d532df5873f03489115b6b3b1..c57cfbedbd90488c64217e5c0a8016a87ccc1261 100644 (file)
@@ -532,50 +532,6 @@ static zend_always_inline int zend_mm_bitset_nts(zend_mm_bitset bitset)
 #endif
 }
 
-static zend_always_inline int zend_mm_bitset_find_zero(zend_mm_bitset *bitset, int size)
-{
-       int i = 0;
-
-       do {
-               zend_mm_bitset tmp = bitset[i];
-               if (tmp != (zend_mm_bitset)-1) {
-                       return i * ZEND_MM_BITSET_LEN + zend_mm_bitset_nts(tmp);
-               }
-               i++;
-       } while (i < size);
-       return -1;
-}
-
-static zend_always_inline int zend_mm_bitset_find_one(zend_mm_bitset *bitset, int size)
-{
-       int i = 0;
-
-       do {
-               zend_mm_bitset tmp = bitset[i];
-               if (tmp != 0) {
-                       return i * ZEND_MM_BITSET_LEN + zend_ulong_ntz(tmp);
-               }
-               i++;
-       } while (i < size);
-       return -1;
-}
-
-static zend_always_inline int zend_mm_bitset_find_zero_and_set(zend_mm_bitset *bitset, int size)
-{
-       int i = 0;
-
-       do {
-               zend_mm_bitset tmp = bitset[i];
-               if (tmp != (zend_mm_bitset)-1) {
-                       int n = zend_mm_bitset_nts(tmp);
-                       bitset[i] |= Z_UL(1) << n;
-                       return i * ZEND_MM_BITSET_LEN + n;
-               }
-               i++;
-       } while (i < size);
-       return -1;
-}
-
 static zend_always_inline int zend_mm_bitset_is_set(zend_mm_bitset *bitset, int bit)
 {
        return ZEND_BIT_TEST(bitset, bit);
index 39cf01e5afafadde03e25c945d136d1548b9751d..a49ee0a50be022f2f77f7d012ed80a04af27aa0b 100644 (file)
@@ -3541,15 +3541,6 @@ ZEND_API void zend_init_execute_data(zend_execute_data *execute_data, zend_op_ar
 }
 /* }}} */
 
-static zend_always_inline zend_bool zend_is_by_ref_func_arg_fetch(uint32_t arg_num, zend_function *func) /* {{{ */
-{
-       if (EXPECTED(arg_num <= MAX_ARG_FLAG_NUM)) {
-               return QUICK_ARG_SHOULD_BE_SENT_BY_REF(func, arg_num);
-       }
-       return ARG_SHOULD_BE_SENT_BY_REF(func, arg_num);
-}
-/* }}} */
-
 static zend_execute_data *zend_vm_stack_copy_call_frame(zend_execute_data *call, uint32_t passed_args, uint32_t additional_args) /* {{{ */
 {
        zend_execute_data *new_call;