Remove redundant ensure_scrubbed_html
authorrinpatch <rinpatch@sdf.org>
Wed, 1 May 2019 10:52:44 +0000 (13:52 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 1 May 2019 10:52:44 +0000 (13:52 +0300)
It is never used as handling for fake and non-fake activities was merged
into one function above it

lib/pleroma/html.ex

index eb33d12d9e88d87f25ddeae0352a0c1851f72d38..726c370ad7a66ba34f7089b51ba82001c2bad265 100644 (file)
@@ -71,14 +71,6 @@ defmodule Pleroma.HTML do
     end
   end
 
-  def ensure_scrubbed_html(
-        content,
-        scrubbers,
-        true = _fake
-      ) do
-    {:ignore, filter_tags(content, scrubbers)}
-  end
-
   defp generate_scrubber_signature(scrubber) when is_atom(scrubber) do
     generate_scrubber_signature([scrubber])
   end