diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -61,7 +61,6 @@ imagefoldermodel.cpp sortmodel.cpp allimagesmodel.cpp - fileinfo.cpp imagelistmodel.cpp notificationmanager.cpp types.cpp diff --git a/src/fileinfo.h b/src/fileinfo.h deleted file mode 100644 --- a/src/fileinfo.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2017 Atul Sharma - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 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 6 of version 3 of the license. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - * - */ - -#ifndef FILEINFO_H -#define FILEINFO_H - -#include - -class FileInfo : public QObject -{ - Q_OBJECT -public: - explicit FileInfo( QObject* parent = 0); - Q_INVOKABLE bool checkExistence( const QString& path); - -}; - -#endif diff --git a/src/fileinfo.cpp b/src/fileinfo.cpp deleted file mode 100644 --- a/src/fileinfo.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2017 Atul Sharma - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 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 6 of version 3 of the license. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library. If not, see . - * - */ - -#include "fileinfo.h" -#include - -FileInfo::FileInfo(QObject* parent) -{ - Q_UNUSED(parent) -} - -bool FileInfo::checkExistence(const QString& path) -{ - return QFileInfo::exists(path); -} diff --git a/src/qmlplugins.cpp b/src/qmlplugins.cpp --- a/src/qmlplugins.cpp +++ b/src/qmlplugins.cpp @@ -27,7 +27,6 @@ #include "imagefoldermodel.h" #include "sortmodel.h" #include "allimagesmodel.h" -#include "fileinfo.h" #include "imagelistmodel.h" #include "notificationmanager.h" #include "types.h" @@ -49,7 +48,6 @@ qmlRegisterType (uri, 0, 1, "ImageFolderModel"); qmlRegisterType (uri, 0, 1, "AllImagesModel"); qmlRegisterType (uri, 0, 1, "SortModel"); - qmlRegisterType (uri, 0, 1, "FileInfo"); qmlRegisterType (uri, 0, 1, "ImageListModel"); qmlRegisterType (uri, 0, 1, "ImageDocument"); qmlRegisterType (uri, 0, 1, "NotificationManager");