dump_key/2 no longer used
authorMark Felder <feld@FreeBSD.org>
Thu, 3 Dec 2020 16:03:44 +0000 (10:03 -0600)
committerMark Felder <feld@FreeBSD.org>
Thu, 3 Dec 2020 16:03:44 +0000 (10:03 -0600)
lib/mix/tasks/pleroma/config.ex

index f4bb84a1387b4815ad08463065d243e5bf2a6cdd..137aef0387a60cf34d31efc94d492e1754cb5224 100644 (file)
@@ -289,16 +289,6 @@ defmodule Mix.Tasks.Pleroma.Config do
     shell_info("config #{inspect(config.group)}, #{inspect(config.key)}, #{value}\r\n\r\n")
   end
 
-  defp dump_key(group, key) when is_atom(group) and is_atom(key) do
-    ConfigDB
-    |> Repo.all()
-    |> Enum.filter(fn x ->
-      if x.group == group && x.key == key do
-        x |> dump
-      end
-    end)
-  end
-
   defp dump_group(group) when is_atom(group) do
     %{group: group}
     |> ConfigDB.get_by_params()