From a2a4d09cbd42d3de8380ee0061a80cdc0bfb4e6c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 21 Mar 2017 12:41:55 +0100 Subject: Removed unnecessary default implementations --- examples/imapresource/CMakeLists.txt | 2 +- examples/imapresource/facade.cpp | 44 ---------------------------------- examples/imapresource/facade.h | 36 ---------------------------- examples/imapresource/imapresource.cpp | 4 ++-- 4 files changed, 3 insertions(+), 83 deletions(-) delete mode 100644 examples/imapresource/facade.cpp delete mode 100644 examples/imapresource/facade.h (limited to 'examples/imapresource') diff --git a/examples/imapresource/CMakeLists.txt b/examples/imapresource/CMakeLists.txt index 15a720d..61680cd 100644 --- a/examples/imapresource/CMakeLists.txt +++ b/examples/imapresource/CMakeLists.txt @@ -8,7 +8,7 @@ find_package(KIMAP2 0.0.1 REQUIRED) include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) -add_library(${PROJECT_NAME} SHARED facade.cpp imapresource.cpp domainadaptor.cpp imapserverproxy.cpp) +add_library(${PROJECT_NAME} SHARED imapresource.cpp domainadaptor.cpp imapserverproxy.cpp) qt5_use_modules(${PROJECT_NAME} Core Network) target_link_libraries(${PROJECT_NAME} sink KF5::Mime KIMAP2) diff --git a/examples/imapresource/facade.cpp b/examples/imapresource/facade.cpp deleted file mode 100644 index 2829bb1..0000000 --- a/examples/imapresource/facade.cpp +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2014 Christian Mollekopf - * - * 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#include "facade.h" - -#include -#include - -#include "domainadaptor.h" -#include "queryrunner.h" - -ImapResourceMailFacade::ImapResourceMailFacade(const Sink::ResourceContext &context) - : Sink::GenericFacade(context) -{ -} - -ImapResourceMailFacade::~ImapResourceMailFacade() -{ -} - -ImapResourceFolderFacade::ImapResourceFolderFacade(const Sink::ResourceContext &context) - : Sink::GenericFacade(context) -{ -} - -ImapResourceFolderFacade::~ImapResourceFolderFacade() -{ -} diff --git a/examples/imapresource/facade.h b/examples/imapresource/facade.h deleted file mode 100644 index 1d24856..0000000 --- a/examples/imapresource/facade.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2014 Christian Mollekopf - * - * 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the - * Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#pragma once - -#include "common/facade.h" - -class ImapResourceMailFacade : public Sink::GenericFacade -{ -public: - ImapResourceMailFacade(const Sink::ResourceContext &context); - virtual ~ImapResourceMailFacade(); -}; - -class ImapResourceFolderFacade : public Sink::GenericFacade -{ -public: - ImapResourceFolderFacade(const Sink::ResourceContext &context); - virtual ~ImapResourceFolderFacade(); -}; diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index ba0251c..4f6f748 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp @@ -949,8 +949,8 @@ Sink::Resource *ImapResourceFactory::createResource(const ResourceContext &conte void ImapResourceFactory::registerFacades(const QByteArray &name, Sink::FacadeFactory &factory) { - factory.registerFacade(name); - factory.registerFacade(name); + factory.registerFacade>(name); + factory.registerFacade>(name); } void ImapResourceFactory::registerAdaptorFactories(const QByteArray &name, Sink::AdaptorFactoryRegistry ®istry) -- cgit v1.2.3