From 294c558d577cd4acb2ee8e94e0dfd6acdb946c6c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 7 Dec 2018 23:12:05 +0300 Subject: Add support for build configuration class inheritance --- mod/database-module.hxx | 28 ++++------------------------ 1 file changed, 4 insertions(+), 24 deletions(-) (limited to 'mod/database-module.hxx') diff --git a/mod/database-module.hxx b/mod/database-module.hxx index 70ae004..9791ece 100644 --- a/mod/database-module.hxx +++ b/mod/database-module.hxx @@ -5,20 +5,13 @@ #ifndef MOD_DATABASE_MODULE_HXX #define MOD_DATABASE_MODULE_HXX -#include - #include // database -#include // compare_c_string - #include #include -#include - #include #include -#include namespace brep { @@ -49,12 +42,11 @@ namespace brep void init (const options::package_db&, size_t retry); - // Initialize the build database instance and parse build configuration - // file. Throw odb::exception on database failure, tab_parsing on parsing - // error, system_error on the underlying OS error. + // Initialize the build database instance. Throw odb::exception on + // database failure. // void - init (const options::build&, const options::build_db&, size_t retry); + init (const options::build_db&, size_t retry); virtual bool handle (request&, response&) = 0; @@ -63,19 +55,7 @@ namespace brep size_t retry_ = 0; // Max of all retries. shared_ptr package_db_; - - // These are NULL if not building. - // - shared_ptr build_db_; - shared_ptr build_conf_; - shared_ptr build_conf_names_; - - shared_ptr> - build_conf_map_; - - shared_ptr bot_agent_keys_; + shared_ptr build_db_; // NULL if not building. private: virtual bool -- cgit v1.1