Parcourir la source

[2726] Remove unused method

Michal 'vorner' Vaner il y a 12 ans
Parent
commit
56e4d09d7b
2 fichiers modifiés avec 0 ajouts et 17 suppressions
  1. 0 8
      src/lib/dhcp/option_definition.cc
  2. 0 9
      src/lib/dhcp/option_definition.h

+ 0 - 8
src/lib/dhcp/option_definition.cc

@@ -228,14 +228,6 @@ OptionDefinition::optionFactory(Option::Universe u, uint16_t type,
 }
 
 void
-OptionDefinition::sanityCheckUniverse(const Option::Universe expected_universe,
-                                      const Option::Universe actual_universe) {
-    if (expected_universe != actual_universe) {
-        isc_throw(isc::BadValue, "invalid universe specified for the option");
-    }
-}
-
-void
 OptionDefinition::validate() const {
 
     using namespace boost::algorithm;

+ 0 - 9
src/lib/dhcp/option_definition.h

@@ -501,15 +501,6 @@ private:
     void writeToBuffer(const std::string& value, const OptionDataType type,
                        OptionBuffer& buf) const;
 
-    /// @brief Sanity check universe value.
-    ///
-    /// @param expected_universe expected universe value.
-    /// @param actual_universe actual universe value.
-    ///
-    /// @throw isc::BadValue if expected universe and actual universe don't match.
-   static inline void sanityCheckUniverse(const Option::Universe expected_universe,
-                                          const Option::Universe actual_universe);
-
     /// Option name.
     std::string name_;
     /// Option code.