| 246 | } |
| 247 | |
| 248 | LRUHandle* Remove(const Slice& key, uint32_t hash) { |
| 249 | LRUHandle** ptr = FindPointer(key, hash); |
| 250 | LRUHandle* result = *ptr; |
| 251 | if (result != nullptr) { |
| 252 | *ptr = result->next_hash; |
| 253 | --elems_; |
| 254 | } |
| 255 | return result; |
| 256 | } |
| 257 | |
| 258 | private: |
| 259 | // The table consists of an array of buckets where each bucket is |
no outgoing calls
no test coverage detected