diff --git a/server/masterserver/GGListener.cc b/server/masterserver/GGListener.cc index 49d8920..d823e28 100644 --- a/server/masterserver/GGListener.cc +++ b/server/masterserver/GGListener.cc @@ -103,24 +103,6 @@ void GGListener::SendText(int sockhandle, const std::string& text) tcp_listener_->SendClientMsg(sockhandle, text.data(), text.size()); } -void GGListener::SendError(int sockhandle, unsigned int seqid, - int error_code, const std::string& error_msg, - const char* file, int lineno, int error_param) -{ - cs::SMRpcError msg; - msg.set_error_code(error_code); - msg.set_error_msg(error_msg); - msg.set_debug_msg(""); - if (file) { - msg.set_file(file); - } else { - msg.set_file(""); - } - msg.set_lineno(lineno); - msg.set_error_param(error_param); - f8::Net_SendProxyMsg(tcp_listener_, sockhandle, seqid, error_code, cs::_SMRpcError, msg); -} - void GGListener::ForceCloseClient(int sockhandle) { tcp_listener_->ForceCloseClient(sockhandle); diff --git a/server/masterserver/GGListener.h b/server/masterserver/GGListener.h index 0819887..0a6bc29 100644 --- a/server/masterserver/GGListener.h +++ b/server/masterserver/GGListener.h @@ -34,10 +34,6 @@ class GGListener : public a8::Singleton } void SendText(int sockhandle, const std::string& text); - void SendError(int sockhandle, unsigned int seqid, - int error_code, const std::string& error_msg, - const char* file = nullptr, int lineno = 0, int error_param = 0); - void ForceCloseClient(int sockhandle); void MarkClient(int sockhandle, bool is_active);