summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2018-09-29 12:29:08 +0200
committerFrancis Dupont <fdupont@isc.org>2018-09-29 12:29:08 +0200
commit7ef1649d01e6e226c60eb0e178bebbac83c85c58 (patch)
tree88b5bbec21f42cde30a8a33c44ceef98677c2325
parent[#6,!54] Removed DCfgContextBase class. (diff)
downloadkea-7ef1649d01e6e226c60eb0e178bebbac83c85c58.tar.xz
kea-7ef1649d01e6e226c60eb0e178bebbac83c85c58.zip
[6-simplify-cpl] Removed #if 0 enclosed code
-rw-r--r--src/lib/process/d_cfg_mgr.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/lib/process/d_cfg_mgr.h b/src/lib/process/d_cfg_mgr.h
index dcaa98345e..5847ec30b7 100644
--- a/src/lib/process/d_cfg_mgr.h
+++ b/src/lib/process/d_cfg_mgr.h
@@ -30,46 +30,6 @@ public:
isc::Exception(file, line, what) { };
};
-#if 0
-/// @brief Pointer to a configuration context.
-// typedef boost::shared_ptr<ConfigBase> ConfigPtr;
-
-class ConfigBase;
-
-/// @brief Abstract class that implements a container for configuration context.
-/// It provides a single enclosure for the storage of configuration parameters
-/// and any other context specific information that needs to be accessible
-/// during configuration parsing as well as to the application as a whole.
-/// The base class supports storage for a small set of simple data types.
-/// Derivations simply add additional storage as needed. Note that this class
-/// declares the pure virtual clone() method, its copy constructor is protected,
-/// and its copy operator is inaccessible. Derivations must supply an
-/// implementation of clone that calls the base class copy constructor.
-/// This allows the management class to perform context backup and restoration
-/// without derivation specific knowledge using logic like
-/// the following:
-///
-/// // Make a backup copy
-/// ConfigPtr backup_copy(context_->clone());
-/// :
-/// // Restore from backup
-/// context_ = backup_copy;
-///
-class ConfigBase : public ConfigBase {
-public:
-
- /// @brief Constructor
- ConfigBase();
-
- /// @brief Destructor
- virtual ~ConfigBase();
-
-private:
- /// @brief Private assignment operator to avoid potential for slicing.
- ConfigBase& operator=(const ConfigBase& rhs);
-};
-#endif
-
/// @brief Configuration Manager
///
/// DCfgMgrBase is an abstract class that provides the mechanisms for managing