From 9cded04202724a78ee07a3d30406203b31b165cd Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 28 Jun 2022 17:16:08 +0200 Subject: [PATCH] Remove `Shape::update` It is no longer being used. --- crates/fj-kernel/src/shape/api.rs | 10 +--------- crates/fj-kernel/src/shape/update.rs | 4 ---- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/crates/fj-kernel/src/shape/api.rs b/crates/fj-kernel/src/shape/api.rs index b7efff6b5..f85a5f1cd 100644 --- a/crates/fj-kernel/src/shape/api.rs +++ b/crates/fj-kernel/src/shape/api.rs @@ -4,7 +4,7 @@ use crate::objects::{Curve, Cycle, Edge, Face, Surface, Vertex}; use super::{ stores::{Store, Stores}, - Handle, Iter, Object, Update, + Handle, Iter, Object, }; /// The boundary representation of a shape @@ -144,14 +144,6 @@ impl Shape { } } - /// Update objects in the shape - /// - /// Returns [`Update`], and API that can be used to update objects in the - /// shape. - pub fn update(&mut self) -> Update { - Update::new(&mut self.stores) - } - /// Access an iterator over all curves /// /// The caller must not make any assumptions about the order of curves. diff --git a/crates/fj-kernel/src/shape/update.rs b/crates/fj-kernel/src/shape/update.rs index f332a9080..8218da478 100644 --- a/crates/fj-kernel/src/shape/update.rs +++ b/crates/fj-kernel/src/shape/update.rs @@ -8,10 +8,6 @@ pub struct Update<'r> { } impl<'r> Update<'r> { - pub(super) fn new(stores: &'r mut Stores) -> Self { - Self { stores } - } - /// Update all objects of a specific type pub fn update_all(self, f: impl FnMut(&mut T)) -> Self { self.stores.get::().update(f);