aboutsummaryrefslogtreecommitdiff
path: root/src/gleam_stdlib.erl
diff options
context:
space:
mode:
authorinoas <mail@inoas.com>2022-11-23 23:41:43 +0100
committerLouis Pilfold <louis@lpil.uk>2022-11-23 23:39:21 +0000
commitb1b511e74ff321dff41c4606a8138b866397cdd6 (patch)
tree7c757179617d0946839442dc2b1ba4cd92ea9a1a /src/gleam_stdlib.erl
parentbae187fc0f013ccd994a9ce6b4411b83376090a5 (diff)
downloadgleam_stdlib-b1b511e74ff321dff41c4606a8138b866397cdd6.tar.gz
gleam_stdlib-b1b511e74ff321dff41c4606a8138b866397cdd6.zip
remove erlang ffi decode_thunk as it seems to be used nowhere
Diffstat (limited to 'src/gleam_stdlib.erl')
-rw-r--r--src/gleam_stdlib.erl5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gleam_stdlib.erl b/src/gleam_stdlib.erl
index 961d0af..b533153 100644
--- a/src/gleam_stdlib.erl
+++ b/src/gleam_stdlib.erl
@@ -1,7 +1,7 @@
-module(gleam_stdlib).
-export([map_get/2, iodata_append/2, identity/1, decode_int/1, decode_bool/1,
- decode_float/1, decode_thunk/1, decode_list/1, decode_option/2,
+ decode_float/1, decode_list/1, decode_option/2,
decode_field/2, parse_int/1, parse_float/1, less_than/2,
string_pop_grapheme/1, string_starts_with/2, wrap_list/1,
string_ends_with/2, string_pad/4, decode_map/1, uri_parse/1,
@@ -73,9 +73,6 @@ decode_float(Data) -> decode_error_msg(<<"Float">>, Data).
decode_bool(Data) when is_boolean(Data) -> {ok, Data};
decode_bool(Data) -> decode_error_msg(<<"Bool">>, Data).
-decode_thunk(Data) when is_function(Data, 0) -> {ok, Data};
-decode_thunk(Data) -> decode_error_msg("zero arity function", Data).
-
decode_list(Data) when is_list(Data) -> {ok, Data};
decode_list(Data) -> decode_error_msg(<<"List">>, Data).