History

cleanup and dead code removal

Brad Hefta-Gaub committed 10 years ago

Commit 2eef07e1 parent 12a185712 files · +11 −124Browse files

Showing the changes to interface/src/Application.cpp (1 of 12 files). Show all

Unified · Split

interface/src/Application.cpp+0−13
@@ -654,11 +654,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 653 unmodified lines
654654 connect(nodeList.data(), &NodeList::nodeActivated, this, &Application::nodeActivated);
655655 connect(nodeList.data(), &NodeList::uuidChanged, getMyAvatar(), &MyAvatar::setSessionUUID);
656656 connect(nodeList.data(), &NodeList::uuidChanged, this, &Application::setSessionUUID);
657−
658657 connect(nodeList.data(), &NodeList::limitOfSilentDomainCheckInsReached, this, &Application::limitOfSilentDomainCheckInsReached);
659− //connect(nodeList.data(), &NodeList::limitOfSilentDomainCheckInsReached, nodeList.data(), &NodeList::reset);
660−
661−
662658 connect(nodeList.data(), &NodeList::packetVersionMismatch, this, &Application::notifyPacketVersionMismatch);
663659
664660 // connect to appropriate slots on AccountManager
@@ -1069,16 +1065,11 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 404 unmodified lines
10691065 }
10701066
10711067 void Application::domainConnectionRefused(const QString& reasonMessage, int reasonCode) {
1072− qDebug() << __FUNCTION__ << "message:" << reasonMessage << "code:" << reasonCode;
1073− qDebug() << __FUNCTION__ << "DomainHandler::ConnectionRefusedReason::ProtocolMismatch:" << (int)DomainHandler::ConnectionRefusedReason::ProtocolMismatch;
1074−
10751068 if (static_cast<DomainHandler::ConnectionRefusedReason>(reasonCode) == DomainHandler::ConnectionRefusedReason::ProtocolMismatch) {
1076− qDebug() << __FUNCTION__ << " PROTOCOL MISMATCH!!!";
10771069 notifyPacketVersionMismatch();
10781070 }
10791071 }
10801072
1081−
10821073 QString Application::getUserAgent() {
10831074 if (QThread::currentThread() != thread()) {
10841075 QString userAgent;
@@ -4595,12 +4586,8 @@ void Application::setSessionUUID(const QUuid& sessionUUID) const { · 3510 unmodified lines
45954586 // We won't actually complete the connection, but if the server responds, we know that it needs to be upgraded (or we
45964587 // need to be downgraded to talk to it).
45974588 void Application::limitOfSilentDomainCheckInsReached() {
4598− //qDebug() << __FUNCTION__;
4599−
46004589 auto nodeList = DependencyManager::get<NodeList>();
4601−
46024590 nodeList->downgradeDomainServerCheckInVersion(); // attempt to use an older domain checkin version
4603−
46044591 nodeList->reset();
46054592 }
46064593