Skip to content

Commit c8524eb

Browse files
committed
Runtime: remove caml_new_string
1 parent 3e33f3d commit c8524eb

File tree

5 files changed

+4
-13
lines changed

5 files changed

+4
-13
lines changed

compiler/tests-check-prim/main.output

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ From +mlBytes.js:
122122
caml_array_of_bytes
123123
caml_array_of_string
124124
caml_bytes_of_utf16_jsstring
125-
caml_new_string
126125
caml_string_concat
127126
caml_to_js_string
128127

compiler/tests-check-prim/unix-unix.output

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ From +mlBytes.js:
231231
caml_array_of_bytes
232232
caml_array_of_string
233233
caml_bytes_of_utf16_jsstring
234-
caml_new_string
235234
caml_string_concat
236235
caml_to_js_string
237236

compiler/tests-check-prim/unix-win32.output

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ From +mlBytes.js:
196196
caml_array_of_bytes
197197
caml_array_of_string
198198
caml_bytes_of_utf16_jsstring
199-
caml_new_string
200199
caml_string_concat
201200
caml_to_js_string
202201

runtime/js/mlBytes.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -883,12 +883,6 @@ function caml_js_to_byte_string(s) {
883883
return caml_string_of_jsbytes(s);
884884
}
885885

886-
//Provides: caml_new_string
887-
//Requires: caml_string_of_jsbytes
888-
function caml_new_string(s) {
889-
return caml_string_of_jsbytes(s);
890-
}
891-
892886
//Provides: caml_js_from_string mutable (const)
893887
//Requires: caml_jsstring_of_string
894888
function caml_js_from_string(s) {

runtime/js/prng.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
//Provides: caml_lxm_M
22
//Requires: caml_int64_of_string
3-
//Requires: caml_new_string
3+
//Requires: caml_string_of_jsstring
44
//Version: >= 5
5-
var caml_lxm_M = caml_int64_of_string(caml_new_string("0xd1342543de82ef95"));
5+
var caml_lxm_M = caml_int64_of_string(caml_string_of_jsstring("0xd1342543de82ef95"));
66

77
//Provides: caml_lxm_daba
88
//Requires: caml_int64_of_string
9-
//Requires: caml_new_string
9+
//Requires: caml_string_of_jsstring
1010
//Version: >= 5
11-
var caml_lxm_daba = caml_int64_of_string(caml_new_string("0xdaba0b6eb09322e3"));
11+
var caml_lxm_daba = caml_int64_of_string(caml_string_of_jsstring("0xdaba0b6eb09322e3"));
1212

1313
//Provides: caml_lxm_next
1414
//Requires: caml_int64_shift_left

0 commit comments

Comments
 (0)