Skip to content

Commit a2ca1d4

Browse files
committed
fix some on type for dialyzer
1 parent 6787439 commit a2ca1d4

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

include/msgpack.hrl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
-endif.
2929

3030
-type msgpack_map_unpacker() ::
31-
fun((binary(), non_neg_integer(), msgpack_map(), msgpack_option()) ->
31+
fun((binary(), non_neg_integer(), msgpack_option()) ->
3232
{msgpack_map(), binary()} | no_return() ).
3333

3434
%% Erlang representation of msgpack data.

src/msgpack_packer.erl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ pack(Bin, Opt) when is_binary(Bin) ->
4848
pack(Atom, #options_v2{allow_atom=pack} = Opt) when is_atom(Atom) ->
4949
pack(erlang:atom_to_binary(Atom, unicode), Opt);
5050

51-
%% -ifndef(without_map).
52-
%% %% map interface
53-
%% pack(Map, Opt = ?OPTION{interface=map}) when is_map(Map) ->
54-
%% pack_map(maps:to_list(Map), Opt);
55-
%% -endif.
56-
5751
%% jiffy interface
5852
pack({Map}, Opt = ?OPTION{interface=jiffy}) when is_list(Map) ->
5953
pack_map(Map, Opt);

0 commit comments

Comments
 (0)