From 21751ce593e57642c190b77a2d162fd903a9c82b Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Fri, 16 Mar 2012 16:29:11 +0100 Subject: [PATCH] Switching to - instead of filterNot --- akka-actor/src/main/scala/akka/event/EventBus.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-actor/src/main/scala/akka/event/EventBus.scala b/akka-actor/src/main/scala/akka/event/EventBus.scala index aee9eb787c..2dd22b3b54 100644 --- a/akka-actor/src/main/scala/akka/event/EventBus.scala +++ b/akka-actor/src/main/scala/akka/event/EventBus.scala @@ -300,7 +300,7 @@ trait ActorClassification { this: ActorEventBus with ActorClassifier ⇒ case null ⇒ false case raw: TreeSet[_] ⇒ val v = raw.asInstanceOf[TreeSet[ActorRef]] - val removed = v.filterNot(monitor ==) + val removed = v - monitor if (removed eq raw) false else if (removed.isEmpty) { if (!mappings.remove(monitored, v)) dissociate(monitored, monitor) else true