aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-08-20 20:11:17 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-08-20 20:11:17 +0000
commitb7f677dc281f61d449abcf85494a41b179cd8dcc (patch)
tree96ee18b4dd604034db0bb96e01d8684ac92ecfa0
parent490ddd6e0dc1b1b837c0cf3549bb66dade01c30f (diff)
downloadpleroma-b7f677dc281f61d449abcf85494a41b179cd8dcc.tar.gz
http: remove unused get_conn_for_gun()
-rw-r--r--lib/pleroma/http/http.ex18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/pleroma/http/http.ex b/lib/pleroma/http/http.ex
index 00558d70a..da86ebcc7 100644
--- a/lib/pleroma/http/http.ex
+++ b/lib/pleroma/http/http.ex
@@ -65,24 +65,6 @@ defmodule Pleroma.HTTP do
end
end
- defp get_conn_for_gun(url, options) do
- case Pleroma.Gun.Connections.get_conn(url, options) do
- nil ->
- options
-
- conn ->
- %{host: host, port: port} = URI.parse(url)
-
- adapter_opts =
- Keyword.get(options, :adapter, [])
- |> Keyword.put(:conn, conn)
- |> Keyword.put(:close_conn, false)
- |> Keyword.put(:original, "#{host}:#{port}")
-
- Keyword.put(options, :adapter, adapter_opts)
- end
- end
-
defp process_sni_options(options, nil), do: options
defp process_sni_options(options, url) do