Changeset 566

Show
Ignore:
Timestamp:
06/19/07 00:07:55 (2 years ago)
Author:
bradfitz
Message:

patch from Steve Grimm to remove unused code.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/memcached.h

    r552 r566  
    260260void  mt_item_flush_expired(void); 
    261261item *mt_item_get_notedeleted(const char *key, const size_t nkey, bool *delete_locked); 
    262 item *mt_item_get_nocheck(const char *key, const size_t nkey); 
    263262int   mt_item_link(item *it); 
    264263void  mt_item_remove(item *it); 
     
    284283# define item_alloc(x,y,z,a,b)       mt_item_alloc(x,y,z,a,b) 
    285284# define item_flush_expired()        mt_item_flush_expired() 
    286 # define item_get_nocheck(x,y)       mt_item_get_nocheck(x,y) 
    287285# define item_get_notedeleted(x,y,z) mt_item_get_notedeleted(x,y,z) 
    288286# define item_link(x)                mt_item_link(x) 
     
    313311# define item_alloc(x,y,z,a,b)       do_item_alloc(x,y,z,a,b) 
    314312# define item_flush_expired()        do_item_flush_expired() 
    315 # define item_get_nocheck(x,y)       do_item_get_nocheck(x,y) 
    316313# define item_get_notedeleted(x,y,z) do_item_get_notedeleted(x,y,z) 
    317314# define item_link(x)                do_item_link(x) 
  • trunk/server/thread.c

    r553 r566  
    397397 
    398398/* 
    399  * Returns an item whether or not it's been marked as expired or deleted. 
    400  */ 
    401 item *mt_item_get_nocheck(const char *key, const size_t nkey) { 
    402     item *it; 
    403  
    404     pthread_mutex_lock(&cache_lock); 
    405     it = assoc_find(key, nkey); 
    406     it->refcount++; 
    407     pthread_mutex_unlock(&cache_lock); 
    408     return it; 
    409 } 
    410  
    411 /* 
    412399 * Links an item into the LRU and hashtable. 
    413400 */