| 232 | } |
| 233 | |
| 234 | static void Sieve_remove_obj(cache_t *cache, cache_obj_t *obj_to_remove) { |
| 235 | DEBUG_ASSERT(obj_to_remove != NULL); |
| 236 | Sieve_params_t *params = cache->eviction_params; |
| 237 | if (obj_to_remove == params->pointer) { |
| 238 | params->pointer = obj_to_remove->queue.prev; |
| 239 | } |
| 240 | remove_obj_from_list(¶ms->q_head, ¶ms->q_tail, obj_to_remove); |
| 241 | cache_remove_obj_base(cache, obj_to_remove, true); |
| 242 | } |
| 243 | |
| 244 | /** |
| 245 | * @brief remove an object from the cache |
no test coverage detected