From e6ede1b9d84083531f5b156f6de13cdf4e9c1092 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 19 Sep 2016 20:54:48 +0100 Subject: File event functions can be pure --- gentoobrowse-api/service/maintenancePackageTree.cpp | 15 --------------- gentoobrowse-api/service/maintenanceimpl.h | 6 +++--- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/gentoobrowse-api/service/maintenancePackageTree.cpp b/gentoobrowse-api/service/maintenancePackageTree.cpp index 50392fc..a78c41d 100644 --- a/gentoobrowse-api/service/maintenancePackageTree.cpp +++ b/gentoobrowse-api/service/maintenancePackageTree.cpp @@ -54,21 +54,6 @@ namespace Gentoo { { } - void - Maintenance::FileProcessor::created(DB::Connection *, const boost::filesystem::path &, const boost::filesystem::path &) - { - } - - void - Maintenance::FileProcessor::modified(DB::Connection *, const boost::filesystem::path &, const boost::filesystem::path &) - { - } - - void - Maintenance::FileProcessor::deleted(DB::Connection *, const boost::filesystem::path &) - { - } - template Maintenance::FileProcessorPtr Maintenance::createFileProessor() diff --git a/gentoobrowse-api/service/maintenanceimpl.h b/gentoobrowse-api/service/maintenanceimpl.h index 3a00ba5..135ae99 100644 --- a/gentoobrowse-api/service/maintenanceimpl.h +++ b/gentoobrowse-api/service/maintenanceimpl.h @@ -20,9 +20,9 @@ namespace Gentoo { virtual void apply(DB::Connection *); virtual void tidy(DB::Connection *); - virtual void created(DB::Connection * dbc, const boost::filesystem::path & fn, const boost::filesystem::path & path); - virtual void modified(DB::Connection * dbc, const boost::filesystem::path & fn, const boost::filesystem::path & path); - virtual void deleted(DB::Connection * dbc, const boost::filesystem::path & fn); + virtual void created(DB::Connection * dbc, const boost::filesystem::path & fn, const boost::filesystem::path & path) = 0; + virtual void modified(DB::Connection * dbc, const boost::filesystem::path & fn, const boost::filesystem::path & path) = 0; + virtual void deleted(DB::Connection * dbc, const boost::filesystem::path & fn) = 0; }; typedef boost::shared_ptr FileProcessorPtr; -- cgit v1.2.3