Skip to content

Commit 048bfa4

Browse files
committed
Cleanup
1 parent 356538f commit 048bfa4

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

Zend/zend_API.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,6 @@ END_EXTERN_C()
650650
#define RETVAL_EMPTY_STRING() ZVAL_EMPTY_STRING(return_value)
651651
#define RETVAL_RES(r) ZVAL_RES(return_value, r)
652652
#define RETVAL_ARR(r) ZVAL_ARR(return_value, r)
653-
#define RETVAL_IMMUTABLE_ARR(r) ZVAL_IMMUTABLE_ARR(return_value, r)
654653
#define RETVAL_EMPTY_ARRAY() ZVAL_EMPTY_ARRAY(return_value)
655654
#define RETVAL_OBJ(r) ZVAL_OBJ(return_value, r)
656655
#define RETVAL_COPY(zv) ZVAL_COPY(return_value, zv)
@@ -672,7 +671,6 @@ END_EXTERN_C()
672671
#define RETURN_EMPTY_STRING() do { RETVAL_EMPTY_STRING(); return; } while (0)
673672
#define RETURN_RES(r) do { RETVAL_RES(r); return; } while (0)
674673
#define RETURN_ARR(r) do { RETVAL_ARR(r); return; } while (0)
675-
#define RETURN_IMMUTABLE_ARR(r) do { RETVAL_IMMUTABLE_ARR(r); return; } while (0)
676674
#define RETURN_EMPTY_ARRAY() do { RETVAL_EMPTY_ARRAY(); return; } while (0)
677675
#define RETURN_OBJ(r) do { RETVAL_OBJ(r); return; } while (0)
678676
#define RETURN_COPY(zv) do { RETVAL_COPY(zv); return; } while (0)

Zend/zend_types.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,6 @@ static zend_always_inline uint32_t zval_gc_info(uint32_t gc_type_info) {
681681
#define IS_RESOURCE_EX (IS_RESOURCE | (IS_TYPE_REFCOUNTED << Z_TYPE_FLAGS_SHIFT))
682682
#define IS_REFERENCE_EX (IS_REFERENCE | (IS_TYPE_REFCOUNTED << Z_TYPE_FLAGS_SHIFT))
683683

684-
#define IS_IMMUTABLE_ARRAY_EX (IS_ARRAY | !(IS_TYPE_REFCOUNTED << Z_TYPE_FLAGS_SHIFT))
685-
686684
#define IS_CONSTANT_AST_EX (IS_CONSTANT_AST | (IS_TYPE_REFCOUNTED << Z_TYPE_FLAGS_SHIFT))
687685

688686
/* string flags (zval.value->gc.u.flags) */
@@ -941,12 +939,6 @@ static zend_always_inline uint32_t zval_gc_info(uint32_t gc_type_info) {
941939
Z_TYPE_INFO_P(__z) = IS_ARRAY_EX; \
942940
} while (0)
943941

944-
#define ZVAL_IMMUTABLE_ARR(z, a) do { \
945-
zval *__z = (z); \
946-
Z_ARR_P(__z) = (a); \
947-
Z_TYPE_INFO_P(__z) = IS_IMMUTABLE_ARRAY_EX; \
948-
} while (0)
949-
950942
#define ZVAL_NEW_ARR(z) do { \
951943
zval *__z = (z); \
952944
zend_array *_arr = \

0 commit comments

Comments
 (0)