Skip to content

Commit 05072c8

Browse files
committed
remove unused table [ci skip]
1 parent d6b4e72 commit 05072c8

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

php_pthreads.c

-6
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,6 @@ PHP_RINIT_FUNCTION(pthreads) {
320320

321321
ALLOC_HASHTABLE(PTHREADS_ZG(cache));
322322
zend_hash_init(PTHREADS_ZG(cache), 15, NULL, NULL, 0);
323-
324-
ALLOC_HASHTABLE(PTHREADS_ZG(registered));
325-
zend_hash_init(PTHREADS_ZG(registered), 8, NULL, pthreads_registered_dtor, 0);
326323
}
327324

328325
PHP_RSHUTDOWN_FUNCTION(pthreads) {
@@ -337,9 +334,6 @@ PHP_RSHUTDOWN_FUNCTION(pthreads) {
337334

338335
zend_hash_destroy(PTHREADS_ZG(cache));
339336
FREE_HASHTABLE(PTHREADS_ZG(cache));
340-
341-
zend_hash_destroy(PTHREADS_ZG(registered));
342-
FREE_HASHTABLE(PTHREADS_ZG(registered));
343337
}
344338

345339
PHP_MINFO_FUNCTION(pthreads)

src/pthreads.h

-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ ZEND_BEGIN_MODULE_GLOBALS(pthreads)
9494
HashTable *resolve;
9595
HashTable *resources;
9696
HashTable *cache;
97-
HashTable *registered;
9897
ZEND_END_MODULE_GLOBALS(pthreads)
9998
# define PTHREADS_ZG(v) TSRMG(pthreads_globals_id, zend_pthreads_globals *, v)
10099
# define PTHREADS_PID() PTHREADS_ZG(pid) ? PTHREADS_ZG(pid) : (PTHREADS_ZG(pid)=getpid())

0 commit comments

Comments
 (0)