From: Hannah von Reth Date: Fri, 3 Jul 2020 11:13:38 +0000 (+0200) Subject: Remove dead code X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~89 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4f8928d35e6d962af91eba7030f6213563abb1ef;p=nextcloud-desktop.git Remove dead code --- diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 701873838..2a61590ad 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -33,7 +33,6 @@ set(client_UI_SRCS ignorelisteditor.ui ignorelisttablewidget.ui networksettings.ui - synclogdialog.ui settingsdialog.ui sharedialog.ui sharelinkwidget.ui @@ -104,7 +103,6 @@ set(client_SRCS authenticationdialog.cpp proxyauthhandler.cpp proxyauthdialog.cpp - synclogdialog.cpp tooltipupdater.cpp notificationconfirmjob.cpp guiutility.cpp diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index f164a1936..1e87d7ae6 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -21,7 +21,6 @@ #include "configfile.h" #include "owncloudsetupwizard.h" #include "accountmanager.h" -#include "synclogdialog.h" #if defined(BUILD_UPDATER) #include "updater/updater.h" @@ -230,7 +229,6 @@ GeneralSettings::GeneralSettings(QWidget *parent) GeneralSettings::~GeneralSettings() { delete _ui; - delete _syncLogDialog; } QSize GeneralSettings::sizeHint() const diff --git a/src/gui/generalsettings.h b/src/gui/generalsettings.h index 3bc29f7ef..9012b5eca 100644 --- a/src/gui/generalsettings.h +++ b/src/gui/generalsettings.h @@ -63,7 +63,6 @@ private: Ui::GeneralSettings *_ui; QPointer _ignoreEditor; - QPointer _syncLogDialog; bool _currentlyLoading = false; }; diff --git a/src/gui/synclogdialog.cpp b/src/gui/synclogdialog.cpp deleted file mode 100644 index ce355aa78..000000000 --- a/src/gui/synclogdialog.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) by Roeland Jago Douma - * Copyright (C) 2015 by Klaas Freitag - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * for more details. - */ - -#include "synclogdialog.h" -#include "ui_synclogdialog.h" -#include "theme.h" -#include "syncresult.h" -#include "configfile.h" -#include "capabilities.h" - -#include "QProgressIndicator.h" - -#include - - -namespace OCC { - -SyncLogDialog::SyncLogDialog(QWidget *parent) - : QDialog(parent) - , _ui(new Ui::SyncLogDialog) -{ - setObjectName("SyncLogDialog"); // required as group for saveGeometry call - - _ui->setupUi(this); - - QPushButton *closeButton = _ui->buttonBox->button(QDialogButtonBox::Close); - if (closeButton) { - connect(closeButton, &QAbstractButton::clicked, this, &QWidget::close); - } -} - -SyncLogDialog::~SyncLogDialog() = default; -} diff --git a/src/gui/synclogdialog.h b/src/gui/synclogdialog.h deleted file mode 100644 index 20825369e..000000000 --- a/src/gui/synclogdialog.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) by Roeland Jago Douma - * Copyright (C) 2015 by Klaas Freitag - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * for more details. - */ - -#ifndef SyncLogDialog_H -#define SyncLogDialog_H - -#include - -namespace OCC { - - -namespace Ui { - class SyncLogDialog; -} - - -/** - * @brief The SyncLogDialog class - * @ingroup gui - */ -class SyncLogDialog : public QDialog -{ - Q_OBJECT - -public: - explicit SyncLogDialog(QWidget *parent = nullptr); - ~SyncLogDialog(); - -private slots: - -private: - Ui::SyncLogDialog *_ui; -}; -} - -#endif // SyncLogDialog_H diff --git a/src/gui/synclogdialog.ui b/src/gui/synclogdialog.ui deleted file mode 100644 index d8f9e2192..000000000 --- a/src/gui/synclogdialog.ui +++ /dev/null @@ -1,38 +0,0 @@ - - - OCC::SyncLogDialog - - - - 0 - 0 - 372 - 247 - - - - Synchronisation Log - - - - - - - - - - 0 - 0 - - - - QDialogButtonBox::Close - - - - - - - - -