Skip to content

Commit

Permalink
Inline redundant method
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Feb 15, 2024
1 parent bf633a6 commit 0e5ab8d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion crates/fj-core/src/layers/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Layer<Objects> {
self.process(ObjectsCommand::InsertObject { object }, &mut events);

for event in events {
validation.on_insert_object(event);
validation.process(event, &mut Vec::new());
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions crates/fj-core/src/layers/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ use crate::{
use super::{objects::InsertObject, Command, Event, Layer};

impl Layer<Validation> {
/// Handler for [`InsertObject`]
pub fn on_insert_object(&mut self, event: InsertObject) {
self.process(event, &mut Vec::new());
}

/// Consume the validation layer, returning any validation errors
pub fn into_result(self) -> Result<(), ValidationErrors> {
let errors = self.into_state().into_errors();
Expand Down

0 comments on commit 0e5ab8d

Please sign in to comment.