summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-02-21 05:49:57 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-02-21 05:49:57 +0100
commit3032dc3580e2d6c3fab57b587945fbb213271557 (patch)
tree8d86b06732a10b7a6380b612ede141e4679cee7b
parent0038e15b5a71369b52c95fdca95442b1b06f2943 (diff)
downloadbiboumi-3032dc3580e2d6c3fab57b587945fbb213271557.tar.gz
biboumi-3032dc3580e2d6c3fab57b587945fbb213271557.tar.bz2
biboumi-3032dc3580e2d6c3fab57b587945fbb213271557.tar.xz
biboumi-3032dc3580e2d6c3fab57b587945fbb213271557.zip
Remove the XmppComponent::last_auth bool that was never used anywhere
-rw-r--r--src/xmpp/xmpp_component.cpp3
-rw-r--r--src/xmpp/xmpp_component.hpp4
2 files changed, 0 insertions, 7 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index 0328c78..1335326 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -39,7 +39,6 @@ static std::set<std::string> kickable_errors{
XmppComponent::XmppComponent(std::shared_ptr<Poller> poller, const std::string& hostname, const std::string& secret):
TCPSocketHandler(poller),
ever_auth(false),
- last_auth(false),
served_hostname(hostname),
secret(secret),
authenticated(false),
@@ -169,7 +168,6 @@ void XmppComponent::on_remote_stream_open(const XmlNode& node)
return ;
}
- this->last_auth = false;
// Try to authenticate
char digest[HASH_LENGTH * 2 + 1];
sha1nfo sha1;
@@ -277,7 +275,6 @@ void XmppComponent::handle_handshake(const Stanza& stanza)
(void)stanza;
this->authenticated = true;
this->ever_auth = true;
- this->last_auth = true;
log_info("Authenticated with the XMPP server");
#ifdef SYSTEMDDAEMON_FOUND
sd_notify(0, "READY=1");
diff --git a/src/xmpp/xmpp_component.hpp b/src/xmpp/xmpp_component.hpp
index d7f7f7a..64b2ff7 100644
--- a/src/xmpp/xmpp_component.hpp
+++ b/src/xmpp/xmpp_component.hpp
@@ -241,10 +241,6 @@ public:
* Whether or not we ever succeeded our authentication to the XMPP server
*/
bool ever_auth;
- /**
- * Whether or not the last connection+auth attempt was successful
- */
- bool last_auth;
private:
/**