From b7f677dc281f61d449abcf85494a41b179cd8dcc Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 20 Aug 2019 20:11:17 +0000 Subject: [PATCH] http: remove unused get_conn_for_gun() --- lib/pleroma/http/http.ex | 18 ------------------ 1 file changed, 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