From b783a593f1976f67c2b1fc04c30a43286298e136 Mon Sep 17 00:00:00 2001 From: Jon Ludlam Date: Wed, 20 Mar 2019 11:43:26 +0000 Subject: [PATCH] Remove redundant bigstring stubs They're in core js_of_ocaml Signed-off-by: Jon Ludlam --- lib/cstruct.js | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/cstruct.js b/lib/cstruct.js index d7f0e415..e9e2ee49 100644 --- a/lib/cstruct.js +++ b/lib/cstruct.js @@ -14,26 +14,6 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -//Provides: caml_blit_string_to_bigstring -//Requires: caml_ba_set_1, caml_string_unsafe_get -function caml_blit_string_to_bigstring(str, str_off, buf, buf_off, len) { - var i; - for (i = 0; i < len; i++) { - caml_ba_set_1(buf, buf_off + i, caml_string_unsafe_get(str, str_off + i)); - } - return 0; -} - -//Provides: caml_blit_bigstring_to_string -//Requires: caml_ba_get_1, caml_string_unsafe_set -function caml_blit_bigstring_to_string(buf, buf_off, str, str_off, len) { - var i; - for (i = 0; i < len; i++) { - caml_string_unsafe_set(str, str_off + i, caml_ba_get_1(buf, buf_off + i)); - } - return 0; -} - //Provides: caml_blit_bigstring_to_bigstring //Requires: caml_ba_get_1, caml_ba_set_1 function caml_blit_bigstring_to_bigstring(src, src_off, dst, dst_off, len) {