Remove dead code
authorHannah von Reth <hannah.vonreth@owncloud.com>
Fri, 3 Jul 2020 11:13:38 +0000 (13:13 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:59:14 +0000 (10:59 +0100)
src/gui/CMakeLists.txt
src/gui/generalsettings.cpp
src/gui/generalsettings.h
src/gui/synclogdialog.cpp [deleted file]
src/gui/synclogdialog.h [deleted file]
src/gui/synclogdialog.ui [deleted file]

index 7018738385da861b77caff58c8c7724ef12172f9..2a61590ad31b972a5032a21dc2db5a38c746c77d 100644 (file)
@@ -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
index f164a19365d30d0a3781cdb6ed1551b5aaac153b..1e87d7ae6f7d0f20fb8e9d91d0ae8309ff52fc94 100644 (file)
@@ -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
index 3bc29f7ef5c4d0d6e8b1f2143adcb3f8b383a0f9..9012b5eca8d2ccbfc5d68470390333cef5216acf 100644 (file)
@@ -63,7 +63,6 @@ private:
 
     Ui::GeneralSettings *_ui;
     QPointer<IgnoreListEditor> _ignoreEditor;
-    QPointer<SyncLogDialog> _syncLogDialog;
     bool _currentlyLoading = false;
 };
 
diff --git a/src/gui/synclogdialog.cpp b/src/gui/synclogdialog.cpp
deleted file mode 100644 (file)
index ce355aa..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (C) by Roeland Jago Douma <roeland@famdouma.nl>
- * Copyright (C) 2015 by Klaas Freitag <freitag@owncloud.com>
- *
- * 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 <QPushButton>
-
-
-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 (file)
index 2082536..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Copyright (C) by Roeland Jago Douma <roeland@famdouma.nl>
- * Copyright (C) 2015 by Klaas Freitag <freitag@owncloud.com>
- *
- * 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 <QDialog>
-
-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 (file)
index d8f9e21..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>OCC::SyncLogDialog</class>
- <widget class="QDialog" name="OCC::SyncLogDialog">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>372</width>
-    <height>247</height>
-   </rect>
-  </property>
-  <property name="windowTitle">
-   <string>Synchronisation Log</string>
-  </property>
-  <layout class="QGridLayout" name="gridLayout">
-   <item row="0" column="0">
-    <layout class="QVBoxLayout" name="logWidgetLayout"/>
-   </item>
-   <item row="1" column="0">
-    <widget class="QDialogButtonBox" name="buttonBox">
-     <property name="sizePolicy">
-      <sizepolicy hsizetype="MinimumExpanding" vsizetype="Minimum">
-       <horstretch>0</horstretch>
-       <verstretch>0</verstretch>
-      </sizepolicy>
-     </property>
-     <property name="standardButtons">
-      <set>QDialogButtonBox::Close</set>
-     </property>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <layoutdefault spacing="6" margin="11"/>
- <resources/>
- <connections/>
-</ui>