Remove methods in the deprecated old resource API
Change-Id: I5ccb8e30fc1a48208f28384d4c444f864ffe9cb7
diff --git a/core/api/src/main/java/org/onosproject/net/resource/ResourceAllocation.java b/core/api/src/main/java/org/onosproject/net/resource/ResourceAllocation.java
index 01b69b2..728382a 100644
--- a/core/api/src/main/java/org/onosproject/net/resource/ResourceAllocation.java
+++ b/core/api/src/main/java/org/onosproject/net/resource/ResourceAllocation.java
@@ -22,10 +22,4 @@
*/
@Beta
public interface ResourceAllocation {
- /**
- * Returns the resource type.
- *
- * @return the resource type
- */
- ResourceType type();
}
diff --git a/core/api/src/main/java/org/onosproject/net/resource/ResourceRequest.java b/core/api/src/main/java/org/onosproject/net/resource/ResourceRequest.java
index fb53f12..4da6c6a 100644
--- a/core/api/src/main/java/org/onosproject/net/resource/ResourceRequest.java
+++ b/core/api/src/main/java/org/onosproject/net/resource/ResourceRequest.java
@@ -22,11 +22,4 @@
*/
@Beta
public interface ResourceRequest {
- /**
- * Returns the resource type.
- *
- * @return the resource type
- */
- ResourceType type();
-
}
diff --git a/core/api/src/main/java/org/onosproject/net/resource/link/LinkResourceAllocations.java b/core/api/src/main/java/org/onosproject/net/resource/link/LinkResourceAllocations.java
index 7f9eafd..edba21c 100644
--- a/core/api/src/main/java/org/onosproject/net/resource/link/LinkResourceAllocations.java
+++ b/core/api/src/main/java/org/onosproject/net/resource/link/LinkResourceAllocations.java
@@ -15,13 +15,7 @@
*/
package org.onosproject.net.resource.link;
-import java.util.Collection;
-import java.util.Set;
-
-import org.onosproject.net.Link;
-import org.onosproject.net.intent.IntentId;
import org.onosproject.net.resource.ResourceAllocation;
-import org.onosproject.net.resource.ResourceRequest;
/**
* Representation of allocated link resources.
@@ -30,33 +24,4 @@
*/
@Deprecated
public interface LinkResourceAllocations extends ResourceAllocation {
-
- /**
- * Returns the {@link IntentId} associated with the request.
- *
- * @return the {@link IntentId} associated with the request
- */
- IntentId intentId();
-
- /**
- * Returns the set of target links.
- *
- * @return the set of target links
- */
- Collection<Link> links();
-
- /**
- * Returns the set of resource requests.
- *
- * @return the set of resource requests
- */
- Set<ResourceRequest> resources();
-
- /**
- * Returns allocated resource for the given link.
- *
- * @param link the target link
- * @return allocated resource for the link
- */
- Set<ResourceAllocation> getResourceAllocation(Link link);
}