From 8919370f7d0089864df8e70a8dea8dc48bfa5421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sun, 22 May 2011 16:05:06 +0200 Subject: Removing unnecessary purgePassword() calls in CoreClient. diff --git a/Swiften/Client/CoreClient.cpp b/Swiften/Client/CoreClient.cpp index 8684de2..9907f5d 100644 --- a/Swiften/Client/CoreClient.cpp +++ b/Swiften/Client/CoreClient.cpp @@ -51,7 +51,6 @@ CoreClient::~CoreClient() { stanzaChannel_->onPresenceReceived.disconnect(boost::bind(&CoreClient::handlePresenceReceived, this, _1)); stanzaChannel_->onStanzaAcked.disconnect(boost::bind(&CoreClient::handleStanzaAcked, this, _1)); delete stanzaChannel_; - purgePassword(); } void CoreClient::connect(const ClientOptions& o) { @@ -126,9 +125,6 @@ void CoreClient::handleConnectorFinished(boost::shared_ptr connectio } void CoreClient::disconnect() { - if (options.forgetPassword) { - purgePassword(); - } // FIXME: We should be able to do without this boolean. We just have to make sure we can tell the difference between // connector finishing without a connection due to an error or because of a disconnect. disconnectRequested_ = true; -- cgit v0.10.2-6-g49f6