dump_key/2 no longer used

This commit is contained in:
Mark Felder 2020-12-03 10:03:44 -06:00
parent 60c4ac0f70
commit 7fd4f4908b

View file

@ -289,16 +289,6 @@ defp dump(%Pleroma.ConfigDB{} = 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()