diff options
Diffstat (limited to 'src/actors')
-rw-r--r-- | src/actors/scala/actors/AbstractReactor.scala | 26 | ||||
-rw-r--r-- | src/actors/scala/actors/OutputChannel.scala | 2 | ||||
-rw-r--r-- | src/actors/scala/actors/Reactor.scala | 2 |
3 files changed, 2 insertions, 28 deletions
diff --git a/src/actors/scala/actors/AbstractReactor.scala b/src/actors/scala/actors/AbstractReactor.scala deleted file mode 100644 index d9dbd39c2b..0000000000 --- a/src/actors/scala/actors/AbstractReactor.scala +++ /dev/null @@ -1,26 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2005-2010, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - -// $Id$ - -/** - * The <code>AbstractReactor</code> trait. - * - * @author Philipp Haller - */ -package scala.actors - -trait AbstractReactor[-T] { - - /** - * Sends <code>msg</code> to this - * <code>AbstractReactor</code> (asynchronous). - */ - def !(msg: T): Unit - -} diff --git a/src/actors/scala/actors/OutputChannel.scala b/src/actors/scala/actors/OutputChannel.scala index 8bf92b448e..5f99f57ecf 100644 --- a/src/actors/scala/actors/OutputChannel.scala +++ b/src/actors/scala/actors/OutputChannel.scala @@ -18,7 +18,7 @@ package scala.actors * * @define actor `OutputChannel` */ -trait OutputChannel[-Msg] extends AbstractReactor[Msg] { +trait OutputChannel[-Msg] { /** * Sends <code>msg</code> to this $actor (asynchronous). diff --git a/src/actors/scala/actors/Reactor.scala b/src/actors/scala/actors/Reactor.scala index a5bdcf1dd9..85dcd57189 100644 --- a/src/actors/scala/actors/Reactor.scala +++ b/src/actors/scala/actors/Reactor.scala @@ -195,7 +195,7 @@ trait Reactor[Msg >: Null] extends OutputChannel[Msg] with Combinators { * * @param handler a partial function with message patterns and actions */ - protected[actors] def react(handler: PartialFunction[Msg, Unit]): Nothing = { + protected def react(handler: PartialFunction[Msg, Unit]): Nothing = { synchronized { drainSendBuffer(mailbox) } searchMailbox(mailbox, handler, false) throw Actor.suspendException |