layer: remove dead comment and code

This commit is contained in:
Joonas Koivunen
2023-08-25 13:02:13 +03:00
parent 96161c8cfd
commit bdfc895642

View File

@@ -467,8 +467,6 @@ impl LayerInner {
let mut rx = self.status.subscribe();
// why call get instead of looking at the watch? because get will downgrade any
// Arc<_> it finds, because we set the wanted_evicted
if self.get().is_none() {
// it was not evictable in the first place
// our store to the wanted_evicted does not matter; it will be reset by next download
@@ -1034,10 +1032,6 @@ impl From<ResidentLayer> for Layer {
}
}
#[derive(Debug, thiserror::Error)]
#[error("Layer has been removed from LayerMap already")]
pub(crate) struct RemovedFromLayerMap;
/// Holds the actual downloaded layer, and handles evicting the file on drop.
pub(crate) struct DownloadedLayer {
owner: Weak<LayerInner>,