Преглед изворни кода

chore(s3): remove dead code

Andrew Mayorov пре 1 година
родитељ
комит
44ac7f2b2e
2 измењених фајлова са 0 додато и 8 уклоњено
  1. 0 5
      apps/emqx_s3/src/emqx_s3_client_http.erl
  2. 0 3
      apps/emqx_s3/src/emqx_s3_schema.erl

+ 0 - 5
apps/emqx_s3/src/emqx_s3_client_http.erl

@@ -161,11 +161,6 @@ transport_options(#{transport := ssl, ssl := SSLOpts}) ->
 transport_options(#{transport := tcp}) ->
     [].
 
-format_request({PathQuery, Headers, _Body}) ->
-    {PathQuery, Headers, <<"...">>};
-format_request({PathQuery, Headers}) ->
-    {PathQuery, Headers}.
-
 %%
 
 connect_timeout(C) ->

+ 0 - 3
apps/emqx_s3/src/emqx_s3_schema.erl

@@ -242,9 +242,6 @@ translate(Conf, OptionsIn) ->
 props_with(Keys, Proplist) ->
     lists:filter(fun({K, _}) -> lists:member(K, Keys) end, Proplist).
 
-props_without(Keys, Proplist) ->
-    lists:filter(fun({K, _}) -> not lists:member(K, Keys) end, Proplist).
-
 part_size_validator(PartSizeLimit) ->
     case
         PartSizeLimit >= 5 * 1024 * 1024 andalso