Skip to content

Commit

Permalink
Remove edb_server_sets:new
Browse files Browse the repository at this point in the history
Summary: It's unused, and now that we've settled on transparently using maps, `#{}` looks better on every case.

Reviewed By: jcpetruzza

Differential Revision: D68221072

fbshipit-source-id: 816172acfdff80a5a7f3763c5ee241804368537c
  • Loading branch information
Thibault Suzanne authored and facebook-github-bot committed Jan 16, 2025
1 parent e27d10a commit cac2223
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/edb_server_sets.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
subtract/2,
to_map/2,
map_subtract_keys/2,
new/0,
is_empty/1,
fold/3
]).
Expand All @@ -40,10 +39,6 @@
%% -------------------------------------------------------------------
-type set(A) :: #{A => term()}.

-spec new() -> set(none()).
new() ->
#{}.

-spec is_empty(set(_)) -> boolean().
is_empty(Set) ->
maps:size(Set) =:= 0.
Expand Down

0 comments on commit cac2223

Please sign in to comment.