[bundlerepository] remove unused method
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@919459 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/ResolverImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/ResolverImpl.java
index fc9d2da..51cae3f 100644
--- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/ResolverImpl.java
+++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/impl/ResolverImpl.java
@@ -223,40 +223,6 @@
return result;
}
- private Resource[] filter(Resource[] resources, Requirement[] requirements)
- {
- if (requirements == null || requirements.length == 0)
- {
- return resources;
- }
- List res = new ArrayList();
- for (int resIdx = 0; (resources != null) && resIdx < resources.length; resIdx++)
- {
- boolean resOk = true;
- for (int reqIdx = 0; (requirements != null) && reqIdx < requirements.length; reqIdx++)
- {
- boolean reqOk = false;
- Capability[] caps = resources[resIdx].getCapabilities();
- for (int capIdx = 0; (caps != null) && (capIdx < caps.length); capIdx++)
- {
- if (requirements[reqIdx].isSatisfied(caps[capIdx]))
- {
- reqOk = true;
- break;
- }
- }
- if (!reqOk) {
- resOk = false;
- break;
- }
- }
- if (resOk) {
- res.add(resources[resIdx]);
- }
- }
- return (Resource[]) res.toArray(new Resource[res.size()]);
- }
-
private boolean resolve(Resource resource, Resource[] locals, Resource[] remotes, boolean optional)
{
boolean result = true;