From b499ade206a479078bb8d63c3237774a36f47ef0 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Wed, 22 Mar 2023 11:18:53 +0200 Subject: [PATCH] Remove contains method from LayerMap API --- pageserver/src/tenant/layer_map.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/pageserver/src/tenant/layer_map.rs b/pageserver/src/tenant/layer_map.rs index 449560f390..8d06ccd565 100644 --- a/pageserver/src/tenant/layer_map.rs +++ b/pageserver/src/tenant/layer_map.rs @@ -122,13 +122,6 @@ impl BatchedUpdates<'_, L> where L: ?Sized + Layer, { - /// - /// Check if layer map contains layers with specified key and LSN range - /// - pub fn contains(&self, layer: Arc) -> bool { - self.layer_map.contains(layer) - } - /// /// Insert an on-disk layer. /// @@ -275,14 +268,6 @@ where BatchedUpdates { layer_map: self } } - /// - /// Check if layer map contains layers with specified key and LSN range - /// - pub fn contains(&self, layer: Arc) -> bool { - self.historic - .contains(historic_layer_coverage::LayerKey::from(&*layer)) - } - /// /// Insert an on-disk layer ///