FELIX-993 drop checking the target filter on service unregistration
(see issue for discussion)
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@766654 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/impl/DependencyManager.java b/scr/src/main/java/org/apache/felix/scr/impl/DependencyManager.java
index c521f53..1415a5f 100644
--- a/scr/src/main/java/org/apache/felix/scr/impl/DependencyManager.java
+++ b/scr/src/main/java/org/apache/felix/scr/impl/DependencyManager.java
@@ -264,15 +264,6 @@
*/
private void serviceRemoved( ServiceReference reference )
{
- // ignore the service, if it does not match the target filter
- if ( !targetFilterMatch( reference ) )
- {
- m_componentManager.log( LogService.LOG_DEBUG, "Dependency Manager: Ignoring removed Service for "
- + m_dependencyMetadata.getName() + " : Service " + reference.getProperty( Constants.SERVICE_ID )
- + " does not match target filter " + getTarget(), m_componentManager.getComponentMetadata(), null );
- return;
- }
-
// decrement the number of services
m_size--;