From 4fc9e2d118ba9958e33434a2b70666784101cd7c Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Wed, 4 Jul 2012 17:38:49 +0200 Subject: [PATCH] Remove unused code in ResourceType FEA: ItEr76S04BugFixing --- .../business/resources/entities/ResourceType.java | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/libreplan-business/src/main/java/org/libreplan/business/resources/entities/ResourceType.java b/libreplan-business/src/main/java/org/libreplan/business/resources/entities/ResourceType.java index 10940af8e..f40f83677 100644 --- a/libreplan-business/src/main/java/org/libreplan/business/resources/entities/ResourceType.java +++ b/libreplan-business/src/main/java/org/libreplan/business/resources/entities/ResourceType.java @@ -1,7 +1,7 @@ /* * This file is part of LibrePlan * - * Copyright (C) 2010-2011 Igalia, S.L. + * Copyright (C) 2010-2012 Igalia, S.L. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -21,9 +21,6 @@ package org.libreplan.business.resources.entities; import static org.libreplan.business.i18n.I18nHelper._; -import java.util.EnumSet; -import java.util.Set; - /** * Enumerate with the three basic types of resource: non-limiting, limiting and strategic. * @author Jacobo Aragunde Perez @@ -31,8 +28,7 @@ import java.util.Set; public enum ResourceType { NON_LIMITING_RESOURCE(_("Normal resource")), - LIMITING_RESOURCE(_("Queue-based resource")), - STRATEGIC_RESOURCE(_("Strategic resource")); + LIMITING_RESOURCE(_("Queue-based resource")); private String option; @@ -44,11 +40,4 @@ public enum ResourceType { return option; } - public static Set getResourceTypeList() { - return EnumSet.of( - ResourceType.NON_LIMITING_RESOURCE, - ResourceType.LIMITING_RESOURCE, - ResourceType.STRATEGIC_RESOURCE); - } - }