Cleanups and simplifications of the network cleanup handlers.
The current approach w/ allocating extra callback object instances
(which do nothing but call another method) and putting them into
a map, is unnecessarily complex and expensive. Simple switch()
statements also do the job and are much easier and cheaper.
Enrico Weigelt, metux IT consult (4):
server: control: ServerInputHandler: drop unused unregister()
client: control: ClientInputHandler: drop unused unregister()
server: control: simplify message element handlers w/o expensive
callback objects
client: control: simplify message element handlers w/o expensive
callback objects
.../freecol/client/control/ClientInputHandler.java | 78 ++--
.../freecol/client/control/InGameInputHandler.java | 220 ++++++++----
.../client/control/PreGameInputHandler.java | 94 +++--
.../freecol/server/control/InGameInputHandler.java | 396 +++++++++++----------
.../server/control/PreGameInputHandler.java | 59 +--
.../freecol/server/control/ServerInputHandler.java | 116 +++---
.../server/control/UserConnectionHandler.java | 28 +-
7 files changed, 542 insertions(+), 449 deletions(-)
--
2.11.0.rc0.7.gbe5a750
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Freecol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freecol-developers