Skip to content

Commit

Permalink
Merge pull request #770 from basho/delete-unused-compose-functions
Browse files Browse the repository at this point in the history
Delete unused compose and multicompose functions
  • Loading branch information
jvoegele authored Mar 17, 2017
2 parents e92d611 + 1abb1c7 commit 634fa0d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/riak_repl_ring.erl
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
fs_enabled/1,
set_modes/2,
get_modes/1,
compose/2,
multicompose/1,
pg_enable_trans/2,
pg_disable_trans/2,
pg_enabled/1,
Expand Down Expand Up @@ -495,11 +493,6 @@ del_nat_map(Ring, Mapping) ->
get_nat_map(Ring) ->
get_list(nat_map, Ring).

%% Function composition
compose(F,G) -> fun(X) -> F(G(X)) end.
multicompose(Fs) ->
lists:foldl(fun compose/2, fun(X) -> X end, Fs).

%% unit tests

-ifdef(TEST).
Expand Down

0 comments on commit 634fa0d

Please sign in to comment.