From b357390215566150f000f46cd5d4a23d80b4599b Mon Sep 17 00:00:00 2001 From: Tom Ritchford Date: Thu, 22 Jan 2015 16:39:22 -0500 Subject: [PATCH] Remove redundant post to strand in websocket. --- src/ripple/websocket/Handler.h | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/src/ripple/websocket/Handler.h b/src/ripple/websocket/Handler.h index e848a38a56..1db429e035 100644 --- a/src/ripple/websocket/Handler.h +++ b/src/ripple/websocket/Handler.h @@ -112,7 +112,7 @@ public: return port_->allow_admin; }; - static void ssend (connection_ptr cpClient, message_ptr mpMessage) + void send (connection_ptr cpClient, message_ptr mpMessage) { try { @@ -125,8 +125,8 @@ public: } } - static void ssendb (connection_ptr cpClient, std::string const& strMessage, - bool broadcast) + void send (connection_ptr cpClient, std::string const& strMessage, + bool broadcast) { try { @@ -142,23 +142,6 @@ public: } } - void send (connection_ptr cpClient, message_ptr mpMessage) - { - cpClient->get_strand ().post ( - std::bind ( - &WSServerHandler::ssend, - cpClient, mpMessage)); - } - - void send (connection_ptr cpClient, std::string const& strMessage, - bool broadcast) - { - cpClient->get_strand ().post ( - std::bind ( - &WSServerHandler::ssendb, cpClient, strMessage, - broadcast)); - } - void send (connection_ptr cpClient, Json::Value const& jvObj, bool broadcast) { send (cpClient, to_string (jvObj), broadcast);