File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff 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-
127110let file_delete ~id catalog =
128111 match Hashtbl. find_all catalog.elements id with
129112 | [] -> Result. Error (" No file \" " ^ id ^ " \" " )
You can’t perform that action at this time.
0 commit comments