Skip to content

Commit

Permalink
Runtime: remove caml_new_string
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Nov 19, 2024
1 parent 3e33f3d commit c8524eb
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion compiler/tests-check-prim/main.output
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ From +mlBytes.js:
caml_array_of_bytes
caml_array_of_string
caml_bytes_of_utf16_jsstring
caml_new_string
caml_string_concat
caml_to_js_string

Expand Down
1 change: 0 additions & 1 deletion compiler/tests-check-prim/unix-unix.output
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ From +mlBytes.js:
caml_array_of_bytes
caml_array_of_string
caml_bytes_of_utf16_jsstring
caml_new_string
caml_string_concat
caml_to_js_string

Expand Down
1 change: 0 additions & 1 deletion compiler/tests-check-prim/unix-win32.output
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ From +mlBytes.js:
caml_array_of_bytes
caml_array_of_string
caml_bytes_of_utf16_jsstring
caml_new_string
caml_string_concat
caml_to_js_string

Expand Down
6 changes: 0 additions & 6 deletions runtime/js/mlBytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,12 +883,6 @@ function caml_js_to_byte_string(s) {
return caml_string_of_jsbytes(s);
}

//Provides: caml_new_string
//Requires: caml_string_of_jsbytes
function caml_new_string(s) {
return caml_string_of_jsbytes(s);
}

//Provides: caml_js_from_string mutable (const)
//Requires: caml_jsstring_of_string
function caml_js_from_string(s) {
Expand Down
8 changes: 4 additions & 4 deletions runtime/js/prng.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//Provides: caml_lxm_M
//Requires: caml_int64_of_string
//Requires: caml_new_string
//Requires: caml_string_of_jsstring
//Version: >= 5
var caml_lxm_M = caml_int64_of_string(caml_new_string("0xd1342543de82ef95"));
var caml_lxm_M = caml_int64_of_string(caml_string_of_jsstring("0xd1342543de82ef95"));

//Provides: caml_lxm_daba
//Requires: caml_int64_of_string
//Requires: caml_new_string
//Requires: caml_string_of_jsstring
//Version: >= 5
var caml_lxm_daba = caml_int64_of_string(caml_new_string("0xdaba0b6eb09322e3"));
var caml_lxm_daba = caml_int64_of_string(caml_string_of_jsstring("0xdaba0b6eb09322e3"));

//Provides: caml_lxm_next
//Requires: caml_int64_shift_left
Expand Down

0 comments on commit c8524eb

Please sign in to comment.