Skip to content

Commit

Permalink
Remove state from apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Negabinary committed Sep 27, 2024
1 parent 320611e commit 76d1b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/haz3lweb/Main.re
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let apply = (model, action, ~schedule_action): Model.t => {
last_edit_action := JsUtil.timestamp();
switch (
try({
let new_model = Update.apply(model, action, (), ~schedule_action);
let new_model = Update.apply(model, action, ~schedule_action);
Log.update(action);
new_model;
}) {
Expand Down
4 changes: 1 addition & 3 deletions src/haz3lweb/Update.re
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,7 @@ let ui_state_update =
};
};

let apply =
(model: Model.t, update: t, _state: State.t, ~schedule_action)
: Result.t(Model.t) => {
let apply = (model: Model.t, update: t, ~schedule_action): Result.t(Model.t) => {
let perform_action = (model: Model.t, a: Action.t): Result.t(Model.t) => {
switch (
Editors.perform_action(~settings=model.settings.core, model.editors, a)
Expand Down

0 comments on commit 76d1b0a

Please sign in to comment.