Skip to content

Commit 4060f9e

Browse files
committed
remove commented out code
1 parent c995547 commit 4060f9e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

core/grammar/kfiles.ml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -107,23 +107,6 @@ let file_set_working_set ~id working_set catalog =
107107
let () = catalog.ast := None in
108108
Result.Ok ()
109109

110-
(* let enable_or_disable_rule rule_id enable catalog = (*rTODO*)
111-
match !(catalog.ast) with
112-
| None -> Result.Error ("Compiled AST missing")
113-
| Some ast ->
114-
match Mods.IntMap.find_option rule_id ast.working_set_values with
115-
| None ->
116-
Result.Error ("No rule with id "^ string_of_int rule_id ^" was found.")
117-
| Some old_bool ->
118-
if old_bool = enable then
119-
Result.Ok ()
120-
else
121-
let working_set_values =
122-
Mods.IntMap.add rule_id enable ast.working_set_values
123-
in
124-
let () = catalog.ast := Some {ast with working_set_values} in
125-
Result.Ok () *)
126-
127110
let file_delete ~id catalog =
128111
match Hashtbl.find_all catalog.elements id with
129112
| [] -> Result.Error ("No file \"" ^ id ^ "\"")

0 commit comments

Comments
 (0)