| 68 | } |
| 69 | |
| 70 | void |
| 71 | ObjectSizeCache::remove(const std::string_view url) |
| 72 | { |
| 73 | std::lock_guard lock{_mutex}; |
| 74 | if (auto it = _index.find(url); it != _index.end()) { |
| 75 | cache_size_type i = it->second; |
| 76 | _visits[i] = false; |
| 77 | _urls[i].erase(); |
| 78 | _index.erase(it); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * @brief Make _hand point to the next entry that should be replaced, and clear that entry if it exists. |
no test coverage detected