From 408d7436fc3b223e49c5d6d28258eb5099ff327f Mon Sep 17 00:00:00 2001 From: Ingo Walz Date: Sun, 13 Oct 2013 14:21:30 +0200 Subject: [PATCH] Fixed unused variables --- ext/cache/backend/apc.c | 6 ++---- ext/cache/backend/mongo.c | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ext/cache/backend/apc.c b/ext/cache/backend/apc.c index f3021187f5a..83661fa816f 100644 --- a/ext/cache/backend/apc.c +++ b/ext/cache/backend/apc.c @@ -226,7 +226,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, increment){ zval *key_name, *value = NULL, *prefixed_key; zval *cached_content = NULL, *function_name; - zval *frontend, *prefix; + zval *prefix; PHALCON_MM_GROW(); @@ -248,7 +248,6 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, increment){ convert_to_long_ex(&value); } - frontend = phalcon_fetch_nproperty_this(this_ptr, SL("_frontend"), PH_NOISY_CC); prefix = phalcon_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); PHALCON_INIT_VAR(prefixed_key); @@ -287,7 +286,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, decrement){ zval *key_name, *value = NULL, *prefixed_key; zval *cached_content = NULL, *function_name; - zval *frontend, *prefix; + zval *prefix; PHALCON_MM_GROW(); @@ -309,7 +308,6 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, decrement){ convert_to_long_ex(&value); } - frontend = phalcon_fetch_nproperty_this(this_ptr, SL("_frontend"), PH_NOISY_CC); prefix = phalcon_fetch_nproperty_this(this_ptr, SL("_prefix"), PH_NOISY_CC); PHALCON_INIT_VAR(prefixed_key); diff --git a/ext/cache/backend/mongo.c b/ext/cache/backend/mongo.c index 9a8bc6ceb12..f357c3af995 100644 --- a/ext/cache/backend/mongo.c +++ b/ext/cache/backend/mongo.c @@ -561,7 +561,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Mongo, increment){ zval *key_name, *lifetime = NULL, *frontend, *prefix, *prefixed_key, *value = NULL; zval *collection, *conditions, *document, *timestamp; - zval *ttl = NULL, *modified_time, *difference, *not_expired, *data; + zval *ttl = NULL, *modified_time, *difference, *not_expired; zval *cached_content; PHALCON_MM_GROW(); @@ -676,7 +676,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Mongo, decrement){ zval *key_name, *lifetime = NULL, *frontend, *prefix, *prefixed_key, *value = NULL; zval *collection, *conditions, *document, *timestamp; - zval *ttl = NULL, *modified_time, *difference, *not_expired, *data; + zval *ttl = NULL, *modified_time, *difference, *not_expired; zval *cached_content; PHALCON_MM_GROW();