]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2726] Remove unused method
authorMichal 'vorner' Vaner <vorner@vorner.cz>
Wed, 12 Jun 2013 10:13:28 +0000 (12:13 +0200)
committerMichal 'vorner' Vaner <vorner@vorner.cz>
Wed, 12 Jun 2013 10:13:28 +0000 (12:13 +0200)
src/lib/dhcp/option_definition.cc
src/lib/dhcp/option_definition.h

index 9db99f4489a969f91c966a682fd26e39f101509f..bf2c5fb4a83b896592d6369f36b0402df40994e2 100644 (file)
@@ -227,14 +227,6 @@ OptionDefinition::optionFactory(Option::Universe u, uint16_t type,
     return (optionFactory(u, type, buf.begin(), buf.end()));
 }
 
-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 {
 
index 0aa0e173217877223dc04996ac088c0fdc80a15b..dcfc3c7a9a3d906b8950aa0b8964ea3711e2493b 100644 (file)
@@ -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.