Remove contains method from LayerMap API

This commit is contained in:
Konstantin Knizhnik
2023-05-16 21:18:20 +03:00
parent 0cd01e33c3
commit b499ade206
-15
View File
@@ -122,13 +122,6 @@ impl<L> BatchedUpdates<'_, L>
where
L: ?Sized + Layer,
{
///
/// Check if layer map contains layers with specified key and LSN range
///
pub fn contains(&self, layer: Arc<L>) -> 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<L>) -> bool {
self.historic
.contains(historic_layer_coverage::LayerKey::from(&*layer))
}
///
/// Insert an on-disk layer
///