From 71d5cf9ed86089bb2e5b280c462759590307b94d Mon Sep 17 00:00:00 2001 From: Rin Toshaka Date: Thu, 6 Dec 2018 18:25:39 +0100 Subject: [PATCH] Remove unused vars from user.ex --- lib/mix/tasks/pleroma/user.ex | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/mix/tasks/pleroma/user.ex b/lib/mix/tasks/pleroma/user.ex index 82f351456..12b5af774 100644 --- a/lib/mix/tasks/pleroma/user.ex +++ b/lib/mix/tasks/pleroma/user.ex @@ -232,10 +232,6 @@ defmodule Mix.Tasks.Pleroma.User do end defp set_moderator(user, value) do - info = - user.info - |> Map.put("is_moderator", value) - info_cng = User.Info.admin_api_update(user.info, %{is_moderator: value}) user_cng = @@ -248,10 +244,6 @@ defmodule Mix.Tasks.Pleroma.User do end defp set_admin(user, value) do - info = - user.info - |> Map.put("is_admin", value) - info_cng = User.Info.admin_api_update(user.info, %{is_admin: value}) user_cng = @@ -264,10 +256,6 @@ defmodule Mix.Tasks.Pleroma.User do end defp set_locked(user, value) do - info = - user.info - |> Map.put("locked", value) - info_cng = User.Info.user_upgrade(user.info, %{locked: value}) user_cng = -- 2.45.2