Commit e20691f8 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2053] Remove checks that are no longer necessary

parent 15364a52
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment