Skip to content

Commit

Permalink
Fixed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalz committed Oct 13, 2013
1 parent 65d0b13 commit 408d743
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions ext/cache/backend/apc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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);
Expand Down Expand Up @@ -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();

Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions ext/cache/backend/mongo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 408d743

Please sign in to comment.