diff options
author | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-03-03 15:12:09 +0300 |
---|---|---|
committer | Alexander Strizhakov <alex.strizhakov@gmail.com> | 2020-03-03 15:12:09 +0300 |
commit | ee8071f0d5a8a53f6a9ae635d6ea57ce8576e21b (patch) | |
tree | f565ddb5a6583ca683c68910048ac722aadd0a81 /lib | |
parent | 05429730e46b8605544637feebd4c409a4e9ed18 (diff) | |
download | pleroma-ee8071f0d5a8a53f6a9ae635d6ea57ce8576e21b.tar.gz |
removing unused method
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/http/request_builder.ex | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/pleroma/http/request_builder.ex b/lib/pleroma/http/request_builder.ex index 046741d99..5b92ce764 100644 --- a/lib/pleroma/http/request_builder.ex +++ b/lib/pleroma/http/request_builder.ex @@ -49,26 +49,6 @@ defmodule Pleroma.HTTP.RequestBuilder do @spec opts(Request.t(), keyword()) :: Request.t() def opts(request, options), do: %{request | opts: options} - # NOTE: isn't used anywhere - @doc """ - Add optional parameters to the request - - """ - @spec add_optional_params(Request.t(), %{optional(atom) => atom}, keyword()) :: map() - def add_optional_params(request, _, []), do: request - - def add_optional_params(request, definitions, [{key, value} | tail]) do - case definitions do - %{^key => location} -> - request - |> add_param(location, key, value) - |> add_optional_params(definitions, tail) - - _ -> - add_optional_params(request, definitions, tail) - end - end - @doc """ Add optional parameters to the request """ |