@@ -4155,7 +4155,7 @@ val finally :
41554155 clean:('a -> 'c) ->
41564156 ('a -> 'b) -> 'b
41574157
4158- val try_it : (unit -> 'a) -> unit
4158+ (* val try_it : (unit -> 'a) -> unit *)
41594159
41604160val with_file_as_chan : string -> (out_channel -> 'a) -> 'a
41614161
@@ -4171,14 +4171,14 @@ val with_file_as_chan : string -> (out_channel -> 'a) -> 'a
41714171
41724172
41734173
4174- external id : 'a -> 'a = "%identity"
4174+ (* external id : 'a -> 'a = "%identity" *)
41754175
41764176(** Copied from {!Btype.hash_variant}:
41774177 need sync up and add test case
41784178 *)
4179- val hash_variant : string -> int
4179+ (* val hash_variant : string -> int *)
41804180
4181- val todo : string -> 'a
4181+ (* val todo : string -> 'a *)
41824182
41834183val nat_of_string_exn : string -> int
41844184
@@ -4226,8 +4226,8 @@ let finally v ~clean:action f =
42264226 reraise e
42274227 | e -> action v ; e
42284228
4229- let try_it f =
4230- try ignore (f ()) with _ -> ()
4229+ (* let try_it f =
4230+ try ignore (f ()) with _ -> () *)
42314231
42324232let with_file_as_chan filename f =
42334233 finally (open_out_bin filename) ~clean:close_out f
@@ -4237,9 +4237,9 @@ let with_file_as_chan filename f =
42374237
42384238
42394239
4240- external id : 'a -> 'a = "%identity"
4241-
4240+ (* external id : 'a -> 'a = "%identity" *)
42424241
4242+ (*
42434243let hash_variant s =
42444244 let accu = ref 0 in
42454245 for i = 0 to String.length s - 1 do
@@ -4248,11 +4248,11 @@ let hash_variant s =
42484248 (* reduce to 31 bits *)
42494249 accu := !accu land (1 lsl 31 - 1);
42504250 (* make it signed for 64 bits architectures *)
4251- if !accu > 0x3FFFFFFF then !accu - (1 lsl 31) else !accu
4251+ if !accu > 0x3FFFFFFF then !accu - (1 lsl 31) else !accu *)
42524252
4253- let todo loc =
4253+ (* let todo loc =
42544254 failwith (loc ^ " Not supported yet")
4255-
4255+ *)
42564256
42574257
42584258
@@ -10679,11 +10679,11 @@ let prune_staled_bs_js_files
1067910679 let lazy cmd = bs_cmt_post_process_cmd in
1068010680
1068110681 if cmd <> "" then
10682- Ext_pervasives.try_it (fun _ ->
10682+ (try ignore (
1068310683 Sys.command (
1068410684 cmd ^
1068510685 " -cmt-rm " ^ filepath)
10686- )
10686+ : int ) with _ -> () )
1068710687 | Cmj _ ->
1068810688 (* remove .bs.js *)
1068910689 if context.bs_suffix then
@@ -10933,13 +10933,13 @@ let clean_re_js root =
1093310933 | None -> Set_string.empty
1093410934 in
1093510935 Ext_option.iter (Map_string.find_opt map Bsb_build_schemas.sources) begin fun config ->
10936- Ext_pervasives.try_it (fun () ->
10936+ try (
1093710937 walk_sources { root ;
1093810938 traverse = true;
1093910939 cwd = Filename.current_dir_name;
1094010940 ignored_dirs
1094110941 } config
10942- )
10942+ ) with _ -> ()
1094310943 end
1094410944 | _ -> ()
1094510945 | exception _ -> ()
0 commit comments