Get the transport specification out of the construction path, since it's not a
streamed property of the event. It turns out to be cleaner to just set it in the places where we know that we want a specific transport anyway. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6581 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -23,8 +23,6 @@ package com.threerings.presents.dobj;
|
||||
|
||||
import com.samskivert.util.StringUtil;
|
||||
|
||||
import com.threerings.presents.net.Transport;
|
||||
|
||||
/**
|
||||
* A message event is used to dispatch a message to all subscribers of a distributed object without
|
||||
* actually changing any of the fields of the object. A message has a name, by which different
|
||||
@@ -43,11 +41,10 @@ public class MessageEvent extends NamedEvent
|
||||
* @param name the name of the message event.
|
||||
* @param args the arguments for this message. This array should contain only values of valid
|
||||
* distributed object types.
|
||||
* @param transport a hint as to the type of transport desired for the event.
|
||||
*/
|
||||
public MessageEvent (int targetOid, String name, Object[] args, Transport transport)
|
||||
public MessageEvent (int targetOid, String name, Object[] args)
|
||||
{
|
||||
super(targetOid, name, transport);
|
||||
super(targetOid, name);
|
||||
_args = args;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user