Removed dead code

This commit is contained in:
Viktor Klang 2010-03-16 23:21:13 +01:00
parent ae0ef2d06c
commit 2f4d45aec0

View file

@ -501,8 +501,6 @@ trait Actor extends TransactionManagement {
def !![T](message: Any, timeout: Long): Option[T] = {
if (_isKilled) throw new ActorKilledException("Actor [" + toString + "] has been killed, can't respond to messages")
if (_isRunning) {
val from = if (sender != null && sender.isInstanceOf[Actor]) Some(sender.asInstanceOf[Actor])
else None
val future = postMessageToMailboxAndCreateFutureResultWithTimeout(message, timeout, None)
val isActiveObject = message.isInstanceOf[Invocation]
if (isActiveObject && message.asInstanceOf[Invocation].isVoid) future.completeWithResult(None)