Skip to content

Commit

Permalink
Remove redundant bigstring stubs
Browse files Browse the repository at this point in the history
They're in core js_of_ocaml

Signed-off-by: Jon Ludlam <jon@recoil.org>
  • Loading branch information
jonludlam committed Mar 20, 2019
1 parent af395f3 commit b783a59
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/cstruct.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b783a59

Please sign in to comment.