info: stop using stat

we no longer need to use it because in the latter versions we initialize
to correct on-filesystem state with Layer::for_{resident,evicted}.
This commit is contained in:
Joonas Koivunen
2023-08-29 10:49:41 +03:00
parent 5c343af807
commit 55c42da91b

View File

@@ -788,10 +788,7 @@ impl LayerInner {
fn info(&self, reset: LayerAccessStatsReset) -> HistoricLayerInfo {
let layer_file_name = self.desc.filename().file_name();
let remote = self
.needs_download_blocking()
.map(|maybe| maybe.is_some())
.unwrap_or(true);
let remote = self.get().is_none();
let access_stats = self.access_stats.as_api_model(reset);