Browse Source

[2526] Cleanup: removed unused definition and added doxygen for a function.

Marcin Siodelski 12 years ago
parent
commit
1ee4d989ba
2 changed files with 4 additions and 20 deletions
  1. 0 16
      src/lib/dhcp/libdhcp++.cc
  2. 4 4
      src/lib/dhcp/libdhcp++.h

+ 0 - 16
src/lib/dhcp/libdhcp++.cc

@@ -33,22 +33,6 @@ using namespace std;
 using namespace isc::dhcp;
 using namespace isc::dhcp;
 using namespace isc::util;
 using namespace isc::util;
 
 
-namespace {
-
-/// @brief A structure comprising values that are passed to
-/// OptionDefinition constructor.
-///
-/// This structure is used by functions that initialize
-/// option definitions for standard options (V4 and V6).
-struct OptionParams {
-    std::string name;
-    uint16_t code;
-    OptionDataType type;
-    bool array;
-};
-
-}
-
 // static array with factories for options
 // static array with factories for options
 std::map<unsigned short, Option::Factory*> LibDHCP::v4factories_;
 std::map<unsigned short, Option::Factory*> LibDHCP::v4factories_;
 
 

+ 4 - 4
src/lib/dhcp/libdhcp++.h

@@ -138,9 +138,9 @@ private:
     /// The method creates option definitions for all DHCPv4 options.
     /// The method creates option definitions for all DHCPv4 options.
     /// Currently this function is not implemented.
     /// Currently this function is not implemented.
     ///
     ///
-    /// @todo implemend this function.
-    ///
-    /// @throw isc::NotImplemeneted
+    /// @throw std::bad alloc if system went out of memory.
+    /// @throw MalformedOptionDefinition if any of the definitions
+    /// is incorrect. This is programming error.
     static void initStdOptionDefs4();
     static void initStdOptionDefs4();
 
 
     /// Initialize standard DHCPv6 option definitions.
     /// Initialize standard DHCPv6 option definitions.
@@ -149,7 +149,7 @@ private:
     ///
     ///
     /// @throw std::bad_alloc if system went out of memory.
     /// @throw std::bad_alloc if system went out of memory.
     /// @throw MalformedOptionDefinition if any of the definitions
     /// @throw MalformedOptionDefinition if any of the definitions
-    /// is incorect. This is a programming error.
+    /// is incorrect. This is a programming error.
     static void initStdOptionDefs6();
     static void initStdOptionDefs6();
 
 
     /// pointers to factories that produce DHCPv6 options
     /// pointers to factories that produce DHCPv6 options