Skip to content

Commit

Permalink
Removed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
iwalz committed Oct 13, 2013
1 parent 408d743 commit 4d74e2e
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/libmemcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, save){
* @return mixed
*/
PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, increment){
zval *key_name, *value = NULL, *memcache, *frontend, *prefix;
zval *key_name, *value = NULL, *memcache, *prefix;
zval *prefixed_key, *cached_content;

PHALCON_MM_GROW();
Expand All @@ -396,7 +396,6 @@ PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, increment){
memcache = phalcon_fetch_nproperty_this(this_ptr, SL("_memcache"), PH_NOISY_CC);
}

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 All @@ -422,7 +421,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, increment){
* @return mixed
*/
PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, decrement){
zval *key_name, *value = NULL, *memcache, *frontend, *prefix;
zval *key_name, *value = NULL, *memcache, *prefix;
zval *prefixed_key, *cached_content;

PHALCON_MM_GROW();
Expand All @@ -443,7 +442,6 @@ PHP_METHOD(Phalcon_Cache_Backend_Libmemcached, decrement){
memcache = phalcon_fetch_nproperty_this(this_ptr, SL("_memcache"), PH_NOISY_CC);
}

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/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Memory, exists){
PHP_METHOD(Phalcon_Cache_Backend_Memory, increment){

zval *key_name, *value = NULL, *last_key = NULL, *prefix, *data;
zval *cached_content, *frontend, *result;
zval *cached_content, *result;

PHALCON_MM_GROW();

Expand Down Expand Up @@ -362,7 +362,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Memory, increment){
PHP_METHOD(Phalcon_Cache_Backend_Memory, decrement){

zval *key_name, *value = NULL, *last_key = NULL, *prefix, *data;
zval *cached_content, *frontend, *result;
zval *cached_content, *result;

PHALCON_MM_GROW();

Expand Down

0 comments on commit 4d74e2e

Please sign in to comment.