From: Michal 'vorner' Vaner Date: Wed, 12 Jun 2013 10:13:28 +0000 (+0200) Subject: [2726] Remove unused method X-Git-Tag: bind10-1.2.0beta1-release~400^2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56e4d09d7b49fa6322c3ed52a2c38898d8a27046;p=thirdparty%2Fkea.git [2726] Remove unused method --- diff --git a/src/lib/dhcp/option_definition.cc b/src/lib/dhcp/option_definition.cc index 9db99f4489..bf2c5fb4a8 100644 --- a/src/lib/dhcp/option_definition.cc +++ b/src/lib/dhcp/option_definition.cc @@ -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 { diff --git a/src/lib/dhcp/option_definition.h b/src/lib/dhcp/option_definition.h index 0aa0e17321..dcfc3c7a9a 100644 --- a/src/lib/dhcp/option_definition.h +++ b/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.