From 14780e6332462287fb801717ebe75e83b20c8a96 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 21 Jan 2003 01:08:36 +0000 Subject: [PATCH] No need to go through handleSystemMessage(). It didn't do much. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2202 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../crowd/chat/client/ChatDirector.java | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/src/java/com/threerings/crowd/chat/client/ChatDirector.java b/src/java/com/threerings/crowd/chat/client/ChatDirector.java index 1aa6decbb..2ab060766 100644 --- a/src/java/com/threerings/crowd/chat/client/ChatDirector.java +++ b/src/java/com/threerings/crowd/chat/client/ChatDirector.java @@ -1,5 +1,5 @@ // -// $Id: ChatDirector.java,v 1.42 2003/01/06 00:24:32 mdb Exp $ +// $Id: ChatDirector.java,v 1.43 2003/01/21 01:08:36 mdb Exp $ package com.threerings.crowd.chat; @@ -445,8 +445,9 @@ public class ChatDirector extends BasicDirector getLocalType(event.getTargetOid()), event.getArgs()); } else if (name.equals(SYSTEM_NOTIFICATION)) { - handleSystemMessage( - getLocalType(event.getTargetOid()), event.getArgs()); + Object[] args = event.getArgs(); + displaySystemMessage((String)args[0], (String)args[1], + getLocalType(event.getTargetOid())); } } @@ -503,21 +504,6 @@ public class ChatDirector extends BasicDirector dispatchMessage(new UserMessage(message, localtype, speaker, mode)); } - /** - * Called when a system message is delivered on one of our chat - * objects. - * - * @param type {@link ChatCodes#PLACE_CHAT_TYPE} if the message was - * received on the place object or the type associated with the - * auxiliary chat object on which the message was received. - * @param args the arguments provided with the system message - * notification. - */ - protected void handleSystemMessage (String localtype, Object[] args) - { - displaySystemMessage((String) args[0], (String) args[1], localtype); - } - /** * Translates the specified message using the specified bundle. */