Remove unused QStrings from remotewipe
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 19 Dec 2022 16:35:42 +0000 (17:35 +0100)
committerClaudio Cambra <claudio.cambra@gmail.com>
Tue, 20 Dec 2022 11:59:08 +0000 (12:59 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/remotewipe.cpp

index 116c9e65c3ca3f384855318a66760d838ac6ed9b..8a1a0b06dc71cf896da0453bd7af8d2a0379cd9b 100644 (file)
@@ -77,7 +77,6 @@ void RemoteWipe::checkJobSlot()
     //check for errors
     if (_networkReplyCheck->error() != QNetworkReply::NoError ||
             jsonParseError.error != QJsonParseError::NoError) {
-        QString errorReason;
         QString errorFromJson = json["error"].toString();
         if (!errorFromJson.isEmpty()) {
             qCWarning(lcRemoteWipe) << QString("Error returned from the server: <em>%1<em>")
@@ -153,7 +152,6 @@ void RemoteWipe::notifyServerSuccessJobSlot()
     QJsonObject json = QJsonDocument::fromJson(jsonData, &jsonParseError).object();
     if (_networkReplySuccess->error() != QNetworkReply::NoError ||
             jsonParseError.error != QJsonParseError::NoError) {
-        QString errorReason;
         QString errorFromJson = json["error"].toString();
         if (!errorFromJson.isEmpty()) {
             qCWarning(lcRemoteWipe) << QString("Error returned from the server: <em>%1</em>")