summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse-api/service/maintenancePackageTree.cpp15
-rw-r--r--gentoobrowse-api/service/maintenanceimpl.h6
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<typename T>
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<FileProcessor> FileProcessorPtr;