Browse Source

Remove cowboy_req:to_list/1

Loïc Hoguin 8 years ago
parent
commit
34e5f5853a
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/cowboy_req.erl

+ 0 - 5
src/cowboy_req.erl

@@ -86,7 +86,6 @@
 -export([set/2]).
 -export([set_bindings/4]).
 -export([lock/1]).
--export([to_list/1]).
 
 -type cookie_opts() :: cow_cookie:cookie_opts().
 -export_type([cookie_opts/0]).
@@ -1071,10 +1070,6 @@ set_bindings(HostInfo, PathInfo, Bindings, Req) ->
 lock(Req) ->
 	Req#http_req{resp_state=locked}.
 
--spec to_list(req()) -> [{atom(), any()}].
-to_list(Req) ->
-	lists:zip(record_info(fields, http_req), tl(tuple_to_list(Req))).
-
 %% Internal.
 
 %% We don't match on "keep-alive" since it is the default value.