Ticket #4151: 4151-remove-sendgetratinglist-rev1.patch

File 4151-remove-sendgetratinglist-rev1.patch, 4.3 KB (added by sbirmi, 7 years ago)

remove SendGetRatingList

  • binaries/data/mods/public/gui/lobby/lobby.js

     
    147147                }),
    148148                "isSpecial": true
    149149            });
    150             Engine.SendGetRatingList();
    151150        },
    152151        "leave": msg => {
    153152            addChatMessage({
  • source/lobby/IXmppClient.h

     
    3333    virtual void recv() = 0;
    3434    virtual void SendIqGetGameList() = 0;
    3535    virtual void SendIqGetBoardList() = 0;
    36     virtual void SendIqGetRatingList() = 0;
    3736    virtual void SendIqGetProfile(const std::string& player) = 0;
    3837    virtual void SendIqGameReport(ScriptInterface& scriptInterface, JS::HandleValue data) = 0;
    3938    virtual void SendIqRegisterGame(ScriptInterface& scriptInterface, JS::HandleValue data) = 0;
  • source/lobby/XmppClient.cpp

     
    299299}
    300300
    301301/**
    302  * Request the rating data from the server.
    303  */
    304 void XmppClient::SendIqGetRatingList()
    305 {
    306     glooxwrapper::JID xpartamuppJid(m_xpartamuppId);
    307 
    308     // Send IQ
    309     BoardListQuery* b = new BoardListQuery();
    310     b->m_Command = "getratinglist";
    311     glooxwrapper::IQ iq(gloox::IQ::Get, xpartamuppJid);
    312     iq.addExtension(b);
    313     DbgXMPP("SendIqGetRatingList [" << tag_xml(iq) << "]");
    314     m_client->send(iq);
    315 }
    316 
    317 /**
    318302 * Send game report containing numerous game properties to the server.
    319303 *
    320304 * @param data A JS array of game statistics
  • source/lobby/XmppClient.h

     
    6363    void recv();
    6464    void SendIqGetGameList();
    6565    void SendIqGetBoardList();
    66     void SendIqGetRatingList();
    6766    void SendIqGetProfile(const std::string& player);
    6867    void SendIqGameReport(ScriptInterface& scriptInterface, JS::HandleValue data);
    6968    void SendIqRegisterGame(ScriptInterface& scriptInterface, JS::HandleValue data);
  • source/lobby/scripting/JSInterface_Lobby.cpp

     
    4141    scriptInterface.RegisterFunction<void, &JSI_Lobby::DisconnectXmppClient>("DisconnectXmppClient");
    4242    scriptInterface.RegisterFunction<void, &JSI_Lobby::SendGetGameList>("SendGetGameList");
    4343    scriptInterface.RegisterFunction<void, &JSI_Lobby::SendGetBoardList>("SendGetBoardList");
    44     scriptInterface.RegisterFunction<void, &JSI_Lobby::SendGetRatingList>("SendGetRatingList");
    4544    scriptInterface.RegisterFunction<void, std::wstring, &JSI_Lobby::SendGetProfile>("SendGetProfile");
    4645    scriptInterface.RegisterFunction<void, JS::HandleValue, &JSI_Lobby::SendRegisterGame>("SendRegisterGame");
    4746    scriptInterface.RegisterFunction<void, JS::HandleValue, &JSI_Lobby::SendGameReport>("SendGameReport");
     
    134133    g_XmppClient->SendIqGetBoardList();
    135134}
    136135
    137 void JSI_Lobby::SendGetRatingList(ScriptInterface::CxPrivate* UNUSED(pCxPrivate))
    138 {
    139     if (!g_XmppClient)
    140         return;
    141     g_XmppClient->SendIqGetRatingList();
    142 }
    143 
    144136void JSI_Lobby::SendGetProfile(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), const std::wstring& player)
    145137{
    146138    if (!g_XmppClient)
  • source/lobby/scripting/JSInterface_Lobby.h

     
    3838    void DisconnectXmppClient(ScriptInterface::CxPrivate* pCxPrivate);
    3939    void SendGetGameList(ScriptInterface::CxPrivate* pCxPrivate);
    4040    void SendGetBoardList(ScriptInterface::CxPrivate* pCxPrivate);
    41     void SendGetRatingList(ScriptInterface::CxPrivate* pCxPrivate);
    4241    void SendGetProfile(ScriptInterface::CxPrivate* pCxPrivate, const std::wstring& player);
    4342    void SendGameReport(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue data);
    4443    void SendRegisterGame(ScriptInterface::CxPrivate* pCxPrivate, JS::HandleValue data);