From c8d82a85756bd260b5c649d21977e908874cfb29 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Sun, 7 Feb 2021 16:33:45 +0100 Subject: [PATCH] Removes CommonFunctions as it wasn't used --- .../knarcraft/stargate/CommonFunctions.java | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/main/java/net/knarcraft/stargate/CommonFunctions.java diff --git a/src/main/java/net/knarcraft/stargate/CommonFunctions.java b/src/main/java/net/knarcraft/stargate/CommonFunctions.java deleted file mode 100644 index 7c374fe..0000000 --- a/src/main/java/net/knarcraft/stargate/CommonFunctions.java +++ /dev/null @@ -1,43 +0,0 @@ -package net.knarcraft.stargate; - -import java.io.InputStream; - -/* - * stargate - A portal plugin for Bukkit - * Copyright (C) 2021 Kristian Knarvik - *

- * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - *

- * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Lesser General Public License for more details. - *

- * You should have received a copy of the GNU Lesser General Public License - * along with this program. If not, see . - */ - -/** - * A holding class for methods shared between classes - * - * @author Kristian Knarvik - */ -public final class CommonFunctions { - - private CommonFunctions() {} - - /** - * Gets a resource as an InputStream - * - * @param resourceName

The name of the resource you want to readFromServer

- * @return

An input stream which can be used to access the resource

- */ - public static InputStream getResourceAsStream(String resourceName) { - ClassLoader classloader = Thread.currentThread().getContextClassLoader(); - return classloader.getResourceAsStream(resourceName); - } - -}