Removes an object from a cache.
- obj Object to remove from its cache
Removes the object
from the cache it is assigned to, since an object can only be assigned to one cache at a time, the cache must ne be passed along with it.
Definition at line 378 of file cache.c.
Referenced by nl_cache_clear(), nl_cache_move(), and nl_object_free().
struct nl_cache *cache = obj->ce_cache;
if (cache == NULL)
obj->ce_cache = NULL;
NL_DBG(1, "Deleted %p from cache %p <%s>.\n",
obj, cache, nl_cache_name(cache));