diff --git a/crates/fj-kernel/src/shape/mod.rs b/crates/fj-kernel/src/shape/mod.rs index a410d6731..b71f45e78 100644 --- a/crates/fj-kernel/src/shape/mod.rs +++ b/crates/fj-kernel/src/shape/mod.rs @@ -6,12 +6,10 @@ mod api; mod local; mod object; mod stores; -mod update; pub use self::{ api::Shape, local::LocalForm, object::Object, stores::{Handle, Iter}, - update::Update, }; diff --git a/crates/fj-kernel/src/shape/stores.rs b/crates/fj-kernel/src/shape/stores.rs index 96d31668a..468781bbe 100644 --- a/crates/fj-kernel/src/shape/stores.rs +++ b/crates/fj-kernel/src/shape/stores.rs @@ -81,15 +81,6 @@ impl Store { } } - pub fn update(&mut self, mut f: F) - where - F: FnMut(&mut T), - { - for (_, object) in self.objects.write().iter_mut() { - f(object); - } - } - fn ptr(&self) -> *const () { Arc::as_ptr(&self.objects) as _ } diff --git a/crates/fj-kernel/src/shape/update.rs b/crates/fj-kernel/src/shape/update.rs deleted file mode 100644 index 8218da478..000000000 --- a/crates/fj-kernel/src/shape/update.rs +++ /dev/null @@ -1,16 +0,0 @@ -use super::{stores::Stores, Object}; - -/// API to update a `Shape` -/// -/// See [`Shape::update`]. -pub struct Update<'r> { - stores: &'r mut Stores, -} - -impl<'r> Update<'r> { - /// Update all objects of a specific type - pub fn update_all(self, f: impl FnMut(&mut T)) -> Self { - self.stores.get::().update(f); - self - } -}