2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 22:15:23 +00:00

[1483] Remove unused loop and control variable

Unrelated cleanup.
This commit is contained in:
Michal 'vorner' Vaner
2011-12-16 13:42:57 +01:00
parent 86b08bc45b
commit 30b1cc45e2

View File

@@ -230,7 +230,6 @@ Query::addAuthAdditional(ZoneFinder& finder) {
void
Query::process() {
bool keep_doing = true;
const bool qtype_is_any = (qtype_ == RRType::ANY());
response_.setHeaderFlag(Message::HEADERFLAG_AA, false);
@@ -252,8 +251,6 @@ Query::process() {
// Found a zone which is the nearest ancestor to QNAME, set the AA bit
response_.setHeaderFlag(Message::HEADERFLAG_AA);
response_.setRcode(Rcode::NOERROR());
while (keep_doing) {
keep_doing = false;
std::vector<ConstRRsetPtr> target;
boost::function0<ZoneFinder::FindResult> find;
if (qtype_is_any) {
@@ -400,7 +397,6 @@ Query::process() {
isc_throw(isc::NotImplemented, "Unknown result code");
break;
}
}
}
}