Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Feb 27, 2023
1 parent 11ed29f commit df7817d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
11 changes: 0 additions & 11 deletions kernels/ZendEngine3/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,17 +306,6 @@ int zephir_cleanup_fcache(void *pDest, int num_args, va_list args, zend_hash_key

memcpy(&scope, &ZSTR_VAL(hash_key->key)[(len -1) - 2 * sizeof(zend_class_entry**)], sizeof(zend_class_entry*));

/*
#ifndef ZEPHIR_RELEASE
{
zend_class_entry *cls;
memcpy(&cls, &hash_key->arKey[len - sizeof(zend_class_entry**)], sizeof(zend_class_entry*));
fprintf(stderr, "func: %s, cls: %s, scope: %s [%u]\n", (*entry)->f->common.function_name, (cls ? cls->name : "N/A"), (scope ? scope->name : "N/A"), (uint)(*entry)->times);
}
#endif
*/

if ((*entry)->type != ZEND_INTERNAL_FUNCTION || (scope && scope->type != ZEND_INTERNAL_CLASS)) {
return ZEND_HASH_APPLY_REMOVE;
}
Expand Down
1 change: 0 additions & 1 deletion kernels/ZendEngine3/memory.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ int zephir_set_symbol_str(char *key_name, unsigned int key_length, zval *value);
do { \
zval *orig_ptr = z; \
ZEPHIR_SEPARATE(orig_ptr); \
/*zephir_memory_observe(orig_ptr);*/ \
} while (0)

#endif

0 comments on commit df7817d

Please sign in to comment.