summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-24 15:53:16 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-24 15:56:44 (GMT)
commit8af6fb273cb433ece756459d887c411c61ddcd76 (patch)
treefd0b2782d07354b0a6a96ec8189c44d3c9fcf45a /Swift
parentb63574ca72ccf0ae197f35e2000ad0c6973b2505 (diff)
downloadswift-8af6fb273cb433ece756459d887c411c61ddcd76.zip
swift-8af6fb273cb433ece756459d887c411c61ddcd76.tar.bz2
Remove some unused code in MainController.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Controllers/MainController.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index c69aa00..b02c78b 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -10,7 +10,6 @@
#include <boost/lexical_cast.hpp>
#include <boost/shared_ptr.hpp>
#include <stdlib.h>
-#include <sstream>
#include "Swiften/Network/BoostTimerFactory.h"
#include "Swiften/Network/BoostIOServiceThread.h"
@@ -61,8 +60,6 @@
namespace Swift {
static const String CLIENT_NAME = "Swift";
-//static const String CLIENT_VERSION = "1.0-beta1";
-static const String CLIENT_VERSION = "1.0-devel";
static const String CLIENT_NODE = "http://swift.im";
static const String SHOW_NOTIFICATIONS = "showNotifications";
@@ -91,7 +88,6 @@ MainController::MainController(
settings_(settings),
loginWindow_(NULL) ,
useDelayForLatency_(useDelayForLatency) {
-
storages_ = NULL;
statusTracker_ = NULL;
client_ = NULL;
@@ -103,7 +99,6 @@ MainController::MainController(
discoResponder_ = NULL;
mucSearchController_ = NULL;
-
timeBeforeNextReconnect_ = -1;
mucSearchWindowFactory_ = mucSearchWindowFactory;
eventWindowFactory_ = eventWindowFactory;
@@ -148,7 +143,6 @@ MainController::MainController(
uiEventStream_->onUIEvent.connect(boost::bind(&MainController::handleUIEvent, this, _1));
bool enabled = settings_->getBoolSetting(SHOW_NOTIFICATIONS, true);
uiEventStream_->send(boost::shared_ptr<ToggleNotificationsUIEvent>(new ToggleNotificationsUIEvent(enabled)));
-
if (loginAutomatically) {
profileSettings_ = new ProfileSettingsProvider(selectedLoginJID, settings_);
@@ -431,9 +425,7 @@ void MainController::handleError(const ClientError& error) {
logout();
setReconnectTimer();
if (lastDisconnectError_) {
- std::stringstream ss;
- ss << "Reconnect to " << jid_.getDomain() << " failed: " << message << ". Will retry in " << timeBeforeNextReconnect_ << " seconds.";
- message = ss.str();
+ message = "Reconnect to " + jid_.getDomain() + " failed: " + message + ". Will retry in " + boost::lexical_cast<std::string>(timeBeforeNextReconnect_) + " seconds.";
lastDisconnectError_->conclude();
} else {
message = "Disconnected from " + jid_.getDomain() + ": " + message;
@@ -490,8 +482,6 @@ void MainController::setManagersOffline() {
}
}
-
-
void MainController::handleServerDiscoInfoResponse(boost::shared_ptr<DiscoInfo> info, const boost::optional<ErrorPayload>& error) {
if (!error) {
chatsManager_->setServerDiscoInfo(info);