Browse Source

[2053] Remove checks that are no longer necessary

Mukund Sivaraman 12 years ago
parent
commit
e20691f8d7
1 changed files with 0 additions and 6 deletions
  1. 0 6
      src/lib/dns/labelsequence.cc

+ 0 - 6
src/lib/dns/labelsequence.cc

@@ -114,12 +114,6 @@ LabelSequence::getHash(bool case_sensitive) const {
 
 std::string
 LabelSequence::toText(bool omit_final_dot) const {
-    if ((first_label_ > name_.labelcount_) ||
-        (last_label_ > name_.labelcount_) ||
-        (first_label_ > last_label_)) {
-        isc_throw(BadValue, "Bad first label indices were passed");
-    }
-
     if (name_.length_ == 1) {
         //
         // Special handling for the root label.  We ignore omit_final_dot.