]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4303] Removed unnecessary variable initialization.
authorMarcin Siodelski <marcin@isc.org>
Wed, 27 Apr 2016 15:29:49 +0000 (17:29 +0200)
committerMarcin Siodelski <marcin@isc.org>
Wed, 27 Apr 2016 15:29:49 +0000 (17:29 +0200)
src/lib/dhcpsrv/alloc_engine.cc

index 489d328bb7e8ee0acd9de7d27b273d8491ec822d..81016c363b4a9df30b622877a073d5533e224e83 100644 (file)
@@ -311,9 +311,6 @@ AllocEngine::findReservationInternal(ContextType& ctx,
 
     // We can only search for the reservation if a subnet has been selected.
     if (ctx.subnet_) {
-        // Check which host reservation mode is supported in this subnet.
-        Subnet::HRMode hr_mode = ctx.subnet_->getHostReservationMode();
-
         // Iterate over configured identifiers in the order of preference
         // and try to use each of them to search for the reservations.
         BOOST_FOREACH(const IdentifierPair& id_pair, ctx.host_identifiers_) {