| 353 | } |
| 354 | |
| 355 | void RemoteDownloader::removeItem(const StringBox& url) { |
| 356 | std::lock_guard<Mutex> guard(_mutex); |
| 357 | |
| 358 | auto it = _downloadedItemByUrl.find(url); |
| 359 | if (it != _downloadedItemByUrl.end()) { |
| 360 | _downloadedItemByUrl.erase(it); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | void RemoteDownloader::enqueue(const StringBox& localFilename, |
| 365 | const StringBox& url, |
no test coverage detected