Skip to content

Commit 288b946

Browse files
committed
remove unused code in stdlib
1 parent 5020a26 commit 288b946

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

jscomp/stdlib-406/camlinternalOO.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ let create_object_and_run_initializers obj_0 table =
468468
let sendself obj lab =
469469
(magic obj : (obj -> t) array array).(0).(lab) obj
470470
*)
471-
external send : obj -> tag -> 'a = "%send"
471+
(* external send : obj -> tag -> 'a = "%send" *)
472472
external sendcache : obj -> tag -> t -> int -> 'a = "%sendcache"
473473
external sendself : obj -> label -> 'a = "%sendself"
474474
external get_public_method : obj -> tag -> closure

jscomp/stdlib-406/hashtbl.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
external seeded_hash_param :
1919
int -> int -> int -> 'a -> int = "caml_hash" [@@noalloc]
20-
external old_hash_param :
21-
int -> int -> 'a -> int = "caml_hash_univ_param" [@@noalloc]
20+
(* external old_hash_param :
21+
int -> int -> 'a -> int = "caml_hash_univ_param" [@@noalloc] *)
2222

2323
let hash x = seeded_hash_param 10 100 0 x
2424
let hash_param n1 n2 x = seeded_hash_param n1 n2 0 x

jscomp/stdlib-406/release.ninja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
bsc = ../lib/bsc.exe
3-
bsc_flags = -absname -no-alias-deps -bs-no-version-header -bs-diagnose -bs-no-check-div-by-zero -bs-cross-module-opt -bs-package-name bs-platform -bs-package-output commonjs:lib/js -bs-package-output es6:lib/es6 -nostdlib -w -40-49-103-3 -bin-annot -bs-no-warn-unimplemented-external -I runtime -I others
3+
bsc_flags = -absname -no-alias-deps -bs-no-version-header -bs-diagnose -bs-no-check-div-by-zero -bs-cross-module-opt -bs-package-name bs-platform -bs-package-output commonjs:lib/js -bs-package-output es6:lib/es6 -nostdlib -w -9-3-106 -warn-error A -I runtime -I others
44

55
rule cc
66
command = $bsc -bs-cmi -bs-cmj $bsc_flags -I stdlib-406 $in

jscomp/stdlib-406/sys.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ type backend_type =
2424
| Other of string
2525
(* System interface *)
2626

27-
external get_config: unit -> string * int * bool = "caml_sys_get_config"
27+
(* external get_config: unit -> string * int * bool = "caml_sys_get_config" *)
2828
external get_argv: unit -> string * string array = "caml_sys_get_argv"
2929
external big_endian : unit -> bool = "%big_endian"
3030
external word_size : unit -> int = "%word_size"
3131
external int_size : unit -> int = "%int_size"
32-
external max_wosize : unit -> int = "%max_wosize"
32+
(* external max_wosize : unit -> int = "%max_wosize" *)
3333
external unix : unit -> bool = "%ostype_unix"
3434
external win32 : unit -> bool = "%ostype_win32"
3535
external cygwin : unit -> bool = "%ostype_cygwin"

0 commit comments

Comments
 (0)