From 45fd0a677a6f2d2447ef82e193135c7c4a82d9df Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Tue, 7 Jul 2015 15:51:00 +0300 Subject: [PATCH] Remove dead code --- connd/qconnectionagent.cpp | 23 +---------------------- connd/qconnectionagent.h | 2 -- 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/connd/qconnectionagent.cpp b/connd/qconnectionagent.cpp index 3772e81..4d84f7a 100644 --- a/connd/qconnectionagent.cpp +++ b/connd/qconnectionagent.cpp @@ -386,20 +386,6 @@ void QConnectionAgent::servicesError(const QString &errorMessage) Q_EMIT onErrorReported(serv->path(), errorMessage); } -void QConnectionAgent::ofonoServicesError(const QString &errorMessage) -{ - QOfonoConnectionContext *context = static_cast(sender()); - QVector services = netman->getServices("cellular"); - Q_FOREACH (NetworkService *serv, services) { - if (context->contextPath().contains(serv->path().section("_",2,2))) { - Q_EMIT onErrorReported(serv->path(), errorMessage); - qDebug() << serv->name() << errorMessage; - return; - } - } - qWarning() << "ofono error but could not discover connman service"; -} - void QConnectionAgent::networkStateChanged(const QString &state) { qDebug() << state; @@ -447,12 +433,6 @@ void QConnectionAgent::connmanAvailabilityChanged(bool b) } } -void QConnectionAgent::serviceAdded(const QString &srv) -{ - qDebug() << Q_FUNC_INFO << "<<<<"<< srv; - updateServices(); -} - void QConnectionAgent::setup() { qDebug() << Q_FUNC_INFO @@ -592,8 +572,7 @@ void QConnectionAgent::offlineModeChanged(bool b) void QConnectionAgent::flightModeDialogSuppressionTimeout() { - if (flightModeSuppression) - flightModeSuppression = false; + flightModeSuppression = false; } void QConnectionAgent::displayStateChanged(const QString &state) diff --git a/connd/qconnectionagent.h b/connd/qconnectionagent.h index d4b40d6..0c65fc3 100644 --- a/connd/qconnectionagent.h +++ b/connd/qconnectionagent.h @@ -154,12 +154,10 @@ private slots: void connmanAvailabilityChanged(bool b); void setup(); void servicesError(const QString &); - void ofonoServicesError(const QString &); void technologyPowerChanged(bool); void browserRequest(const QString &servicePath, const QString &url); void techChanged(); - void serviceAdded(const QString &); void servicesListChanged(const QStringList &); void offlineModeChanged(bool); void flightModeDialogSuppressionTimeout();