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/davresource/CMakeLists.txt | 2 +- examples/davresource/davresource.cpp | 4 ++-- examples/davresource/facade.cpp | 44 ------------------------------------ examples/davresource/facade.h | 36 ----------------------------- 4 files changed, 3 insertions(+), 83 deletions(-) delete mode 100644 examples/davresource/facade.cpp delete mode 100644 examples/davresource/facade.h (limited to 'examples/davresource') diff --git a/examples/davresource/CMakeLists.txt b/examples/davresource/CMakeLists.txt index f8cbdb4..9f134c2 100644 --- a/examples/davresource/CMakeLists.txt +++ b/examples/davresource/CMakeLists.txt @@ -5,7 +5,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) find_package(KPimKDAV REQUIRED) -add_library(${PROJECT_NAME} SHARED facade.cpp davresource.cpp domainadaptor.cpp) +add_library(${PROJECT_NAME} SHARED davresource.cpp domainadaptor.cpp) qt5_use_modules(${PROJECT_NAME} Core Network) target_link_libraries(${PROJECT_NAME} sink KPim::KDAV) diff --git a/examples/davresource/davresource.cpp b/examples/davresource/davresource.cpp index f110eb0..d116397 100644 --- a/examples/davresource/davresource.cpp +++ b/examples/davresource/davresource.cpp @@ -271,8 +271,8 @@ Sink::Resource *DavResourceFactory::createResource(const ResourceContext &contex void DavResourceFactory::registerFacades(const QByteArray &name, Sink::FacadeFactory &factory) { - factory.registerFacade(name); - factory.registerFacade(name); + factory.registerFacade>(name); + factory.registerFacade>(name); } void DavResourceFactory::registerAdaptorFactories(const QByteArray &name, Sink::AdaptorFactoryRegistry ®istry) diff --git a/examples/davresource/facade.cpp b/examples/davresource/facade.cpp deleted file mode 100644 index 8ee1b01..0000000 --- a/examples/davresource/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 "query.h" - -DavResourceContactFacade::DavResourceContactFacade(const Sink::ResourceContext &context) - : Sink::GenericFacade(context) -{ -} - -DavResourceContactFacade::~DavResourceContactFacade() -{ -} - - -DavResourceAddressbookFacade::DavResourceAddressbookFacade(const Sink::ResourceContext &context) - : Sink::GenericFacade(context) -{ -} - -DavResourceAddressbookFacade::~DavResourceAddressbookFacade() -{ -} diff --git a/examples/davresource/facade.h b/examples/davresource/facade.h deleted file mode 100644 index d520891..0000000 --- a/examples/davresource/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 DavResourceContactFacade : public Sink::GenericFacade -{ -public: - DavResourceContactFacade(const Sink::ResourceContext &context); - virtual ~DavResourceContactFacade(); -}; - -class DavResourceAddressbookFacade : public Sink::GenericFacade -{ -public: - DavResourceAddressbookFacade(const Sink::ResourceContext &context); - virtual ~DavResourceAddressbookFacade(); -}; -- cgit v1.2.3