diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-06-09 14:51:55 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-06-09 14:51:55 +0200 |
commit | 8da03f98307e03a767cb68659c8473c896cbd325 (patch) | |
tree | bbffe54da3e8e17784d3be5e8fa7c508e5c9c3cd /src/xmpp | |
parent | a0042617335386abfba3f36917e6ab9b8a4bf0e2 (diff) | |
download | biboumi-8da03f98307e03a767cb68659c8473c896cbd325.tar.gz biboumi-8da03f98307e03a767cb68659c8473c896cbd325.tar.bz2 biboumi-8da03f98307e03a767cb68659c8473c896cbd325.tar.xz biboumi-8da03f98307e03a767cb68659c8473c896cbd325.zip |
Remove a useless duplicate method
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/biboumi_component.cpp | 25 | ||||
-rw-r--r-- | src/xmpp/biboumi_component.hpp | 5 |
2 files changed, 0 insertions, 30 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp index 5d571ec..b7613d3 100644 --- a/src/xmpp/biboumi_component.cpp +++ b/src/xmpp/biboumi_component.cpp @@ -506,31 +506,6 @@ void BiboumiComponent::send_self_disco_info(const std::string& id, const std::st this->send_stanza(iq); } -void BiboumiComponent::send_adhoc_commands_list(const std::string& id, const std::string& requester_jid) -{ - Stanza iq("iq"); - iq["type"] = "result"; - iq["id"] = id; - iq["to"] = requester_jid; - iq["from"] = this->served_hostname; - XmlNode query("query"); - query["xmlns"] = DISCO_ITEMS_NS; - query["node"] = ADHOC_NS; - for (const auto& kv: this->adhoc_commands_handler.get_commands()) - { - XmlNode item("item"); - item["jid"] = this->served_hostname; - item["node"] = kv.first; - item["name"] = kv.second.name; - item.close(); - query.add_child(std::move(item)); - } - query.close(); - iq.add_child(std::move(query)); - iq.close(); - this->send_stanza(iq); -} - void BiboumiComponent::send_iq_version_request(const std::string& from, const std::string& jid_to) { diff --git a/src/xmpp/biboumi_component.hpp b/src/xmpp/biboumi_component.hpp index e9b5d72..8b0b3da 100644 --- a/src/xmpp/biboumi_component.hpp +++ b/src/xmpp/biboumi_component.hpp @@ -53,11 +53,6 @@ public: */ void send_self_disco_info(const std::string& id, const std::string& jid_to); /** - * Send the list of all available ad-hoc commands to that JID. The list is - * different depending on what JID made the request. - */ - void send_adhoc_commands_list(const std::string& id, const std::string& requester_jid); - /** * Send an iq version request */ void send_iq_version_request(const std::string& from, |