From 3bf8fde060ec5c128fd49b7542072cda4d6a00a1 Mon Sep 17 00:00:00 2001 From: Colin McDonald Date: Mon, 16 May 2016 16:49:14 -0400 Subject: [PATCH] Remove unused ErrorUtils#unauthorized method --- src/main/java/net/frozenorb/apiv3/utils/ErrorUtils.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/net/frozenorb/apiv3/utils/ErrorUtils.java b/src/main/java/net/frozenorb/apiv3/utils/ErrorUtils.java index 74a839c..dcfb3bb 100644 --- a/src/main/java/net/frozenorb/apiv3/utils/ErrorUtils.java +++ b/src/main/java/net/frozenorb/apiv3/utils/ErrorUtils.java @@ -15,11 +15,7 @@ public class ErrorUtils { public static Map notFound(String itemType, String id) { return error("Not found: " + itemType + " with id " + id + " cannot be found."); } - - public static Map unauthorized(String permission) { - return error("Unauthorized access: Permission \"" + permission + "\" required."); - } - + public static Map invalidInput(String message) { return error("Invalid input: " + message); }