This is so succinct now, we can dispense with the helper method altogether.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6115 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2010-08-10 22:09:33 +00:00
parent 83c5fcfb15
commit 5c7d59e597
+2 -10
View File
@@ -109,7 +109,8 @@ public class Streamer
{
// if we have not yet initialized ourselves, do so now
if (_streamers == null) {
createStreamers();
_streamers = Maps.newHashMap();
_streamers.putAll(BasicStreamers.BSTREAMERS); // register all of the basic streamers
}
Streamer stream = _streamers.get(target);
@@ -487,15 +488,6 @@ public class Streamer
}
}
/**
* Creates our streamers table and registers streamers for all of the basic types.
*/
protected static void createStreamers ()
{
_streamers = Maps.newHashMap();
_streamers.putAll(BasicStreamers.BSTREAMERS); // register all of the basic streamers
}
/** Used to coerce the type system into quietude when reading enums from the wire. */
protected static enum EnumReader implements ByteEnum {
NOT_USED;