1
0
Fork 0

removed unused xc_constant_copy_ctor

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@121 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2006-09-02 02:09:03 +00:00
parent a0317654ea
commit 5db529021f
1 changed files with 0 additions and 18 deletions

18
utils.c
View File

@ -359,24 +359,6 @@ ZESW(xc_cest_t *, void) xc_install_class(char *filename, xc_cest_t *cest, zend_u
#define TG(x) (sandbox->tmp_##x)
#define OG(x) (sandbox->orig_##x)
/* }}} */
#ifdef HAVE_XCACHE_CONSTANT
static void xc_constant_copy_ctor(zend_constant *c) /* {{{ */
{
#ifdef IS_UNICODE
if (UG(unicode)) {
ZSTR_U(c->name) = zend_ustrndup(ZSTR_U(c->name), c->name_len - 1);
}
else
#endif
{
ZSTR_S(c->name) = zend_strndup(ZSTR_S(c->name), c->name_len - 1);
}
if (!(c->flags & CONST_PERSISTENT)) {
zval_copy_ctor(&c->value);
}
}
/* }}} */
#endif
xc_sandbox_t *xc_sandbox_init(xc_sandbox_t *sandbox, char *filename TSRMLS_DC) /* {{{ */
{
if (sandbox) {