[SCM] kdeconnect packaging branch, master, updated. upstream/1.0.1-206-gf661872

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 18:27:11 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=d71d309

The following commit has been merged in the master branch:
commit d71d3090d2b0cd7c2a316fc3890ac164190a373e
Author: Albert Vaca <albertvaka at gmail.com>
Date:   Sat Nov 26 15:48:53 2016 +0100

    Removed unused file.
---
 plugins/share/CMakeLists.txt       |  1 -
 plugins/share/autoclosingqfile.cpp | 27 ------------------------
 plugins/share/autoclosingqfile.h   | 42 --------------------------------------
 plugins/share/shareplugin.cpp      |  1 -
 4 files changed, 71 deletions(-)

diff --git a/plugins/share/CMakeLists.txt b/plugins/share/CMakeLists.txt
index e7d8d93..f72ded4 100644
--- a/plugins/share/CMakeLists.txt
+++ b/plugins/share/CMakeLists.txt
@@ -2,7 +2,6 @@ find_package(KF5 REQUIRED COMPONENTS Notifications KIO)
 
 set(kdeconnect_share_SRCS
     shareplugin.cpp
-    autoclosingqfile.cpp
 )
 
 kdeconnect_add_plugin(kdeconnect_share JSON kdeconnect_share.json SOURCES ${kdeconnect_share_SRCS})
diff --git a/plugins/share/autoclosingqfile.cpp b/plugins/share/autoclosingqfile.cpp
deleted file mode 100644
index ef2aeea..0000000
--- a/plugins/share/autoclosingqfile.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright 2013 Albert Vaca <albertvaka at gmail.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) version 3 or any later version
- * accepted by the membership of KDE e.V. (or its successor approved
- * by the membership of KDE e.V.), which shall act as a proxy
- * defined in Section 14 of version 3 of the license.
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "autoclosingqfile.h"
-
-AutoClosingQFile::AutoClosingQFile(const QString& name)
-    : QFile(name)
-{
-
-}
diff --git a/plugins/share/autoclosingqfile.h b/plugins/share/autoclosingqfile.h
deleted file mode 100644
index a90798d..0000000
--- a/plugins/share/autoclosingqfile.h
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright 2013 Albert Vaca <albertvaka at gmail.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) version 3 or any later version
- * accepted by the membership of KDE e.V. (or its successor approved
- * by the membership of KDE e.V.), which shall act as a proxy
- * defined in Section 14 of version 3 of the license.
- *
- * 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.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef AUTOCLOSINGQFILE_H
-#define AUTOCLOSINGQFILE_H
-
-#include <QFile>
-
-class AutoClosingQFile : public QFile
-{
-    Q_OBJECT
-public:
-
-    explicit AutoClosingQFile(const QString &name);
-    qint64 readData(char* data, qint64 maxlen) override {
-        qint64 read = QFile::readData(data, maxlen);
-        if (read == -1 || read == bytesAvailable()) {
-            close();
-        }
-        return read;
-    }
-};
-
-
-#endif // AUTOCLOSINGQFILE_H
diff --git a/plugins/share/shareplugin.cpp b/plugins/share/shareplugin.cpp
index 25de2c0..26c3a22 100644
--- a/plugins/share/shareplugin.cpp
+++ b/plugins/share/shareplugin.cpp
@@ -35,7 +35,6 @@
 #include <KIO/MkpathJob>
 
 #include "core/filetransferjob.h"
-#include "autoclosingqfile.h"
 
 K_PLUGIN_FACTORY_WITH_JSON( KdeConnectPluginFactory, "kdeconnect_share.json", registerPlugin< SharePlugin >(); )
 

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list