Skip to content

Commit

Permalink
Remove unused apc_pstrdup function
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Feb 25, 2018
1 parent 1e93584 commit a7fe5da
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions apc_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,6 @@ PHP_APCU_API void apc_pool_init()
}
/* }}} */

/* {{{ apc_pstrdup */
PHP_APCU_API void* APC_ALLOC apc_pstrdup(const char* s, apc_pool* pool)
{
return s != NULL ? apc_pmemcpy(s, (strlen(s) + 1), pool) : NULL;
}
/* }}} */

/* {{{ apc_pmemcpy */
PHP_APCU_API void* APC_ALLOC apc_pmemcpy(const void* p, size_t n, apc_pool* pool)
{
Expand Down
5 changes: 0 additions & 5 deletions apc_pool_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,5 @@ PHP_APCU_API void* apc_pmemcpy(const void* p, size_t n, apc_pool* pool);
PHP_APCU_API zend_string* apc_pstrcpy(zend_string *str, apc_pool* pool);
PHP_APCU_API zend_string* apc_pstrnew(unsigned char *buf, size_t buf_len, apc_pool* pool);

/*
apc_pstrdup performs strdup using resources provided by pool
*/
PHP_APCU_API void* apc_pstrdup(const char* s, apc_pool* pool);

#endif

0 comments on commit a7fe5da

Please sign in to comment.