From d55bfcbfc6c6c836013e4b9b45eb70c729d5ca7b Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Thu, 26 Oct 2023 12:16:30 +0100 Subject: [PATCH] Remove unneeded --- src/gleam/string.gleam | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gleam/string.gleam b/src/gleam/string.gleam index 2e31a4bc..729371fe 100644 --- a/src/gleam/string.gleam +++ b/src/gleam/string.gleam @@ -900,10 +900,6 @@ fn do_inspect(term term: anything) -> StringBuilder /// This function runs in constant time on Erlang and in linear time on /// JavaScript. /// -pub fn byte_size(string: String) -> Int { - do_byte_size(string) -} - @external(erlang, "erlang", "byte_size") @external(javascript, "../gleam_stdlib.mjs", "byte_size") -fn do_byte_size(a: String) -> Int +pub fn byte_size(string: String) -> Int