]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[6-simplify-cpl] Removed #if 0 enclosed code
authorFrancis Dupont <fdupont@isc.org>
Sat, 29 Sep 2018 10:29:08 +0000 (12:29 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sat, 29 Sep 2018 10:29:08 +0000 (12:29 +0200)
src/lib/process/d_cfg_mgr.h

index dcaa98345e0848889aa06e938c28d3d259560eb2..5847ec30b77f3cfbf5d88e1a07591771c6f56987 100644 (file)
@@ -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