From 0367a683659aa5e69038c9c4e4c6c27be91226f3 Mon Sep 17 00:00:00 2001 From: Burnleydev1 Date: Tue, 8 Aug 2023 10:47:44 +0100 Subject: [PATCH] remove unused changes. Signed-off-by: Burnleydev1 --- src/context_free.ml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/context_free.ml b/src/context_free.ml index 1d0e61db..84648728 100644 --- a/src/context_free.ml +++ b/src/context_free.ml @@ -408,15 +408,11 @@ class map_top_down ?(expect_mismatch_handler = Expect_mismatch_handler.nop) let hook = generated_code_hook in let special_functions = - try Rule.filter Special_function rules |> table_of_special_functions - with exn -> raise exn + Rule.filter Special_function rules |> table_of_special_functions in let constants = - (try - Rule.filter Constant rules - |> List.map ~f:(fun (c : Rule.Constant.t) -> - ((c.suffix, c.kind), c.expand)) - with exn -> raise exn) + Rule.filter Constant rules + |> List.map ~f:(fun (c : Rule.Constant.t) -> ((c.suffix, c.kind), c.expand)) |> Hashtbl.of_alist_exn in let extensions = Rule.filter Extension rules in