summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2023-02-09 21:09:04 +0100
committerThomas Markwalder <tmark@isc.org>2023-02-09 22:26:45 +0100
commit62941c7e58eec4c88079a763119bd9000e2abd4e (patch)
tree78be4ce4f21f049f04a53a282834bd75bcde0e40 /src
parent[#2538] Addressed review comments (diff)
downloadkea-62941c7e58eec4c88079a763119bd9000e2abd4e.tar.xz
kea-62941c7e58eec4c88079a763119bd9000e2abd4e.zip
[#2538] Addressed more comments
src/lib/dhcp/option.cc Removed dead line src/lib/dhcpsrv/tests/host_reservation_parser_unittest.cc Removed unneeded include
Diffstat (limited to 'src')
-rw-r--r--src/lib/dhcp/option.cc1
-rw-r--r--src/lib/dhcpsrv/tests/host_reservation_parser_unittest.cc1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/dhcp/option.cc b/src/lib/dhcp/option.cc
index b50df37601..5b95dac699 100644
--- a/src/lib/dhcp/option.cc
+++ b/src/lib/dhcp/option.cc
@@ -333,7 +333,6 @@ void Option::addOption(OptionPtr opt) {
// Do not allow options to be added to themselves as this
// can lead to infinite recursion.
isc_throw(InvalidOperation, "option cannot be added to itself: " << toText());
- // return;
}
options_.insert(make_pair(opt->getType(), opt));
diff --git a/src/lib/dhcpsrv/tests/host_reservation_parser_unittest.cc b/src/lib/dhcpsrv/tests/host_reservation_parser_unittest.cc
index b79a032bcc..a7c1de49e0 100644
--- a/src/lib/dhcpsrv/tests/host_reservation_parser_unittest.cc
+++ b/src/lib/dhcpsrv/tests/host_reservation_parser_unittest.cc
@@ -10,7 +10,6 @@
#include <cc/data.h>
#include <dhcp/duid.h>
#include <dhcp/hwaddr.h>
-#include <dhcp/option_custom.h>
#include <dhcp/option_int.h>
#include <dhcp/option4_addrlst.h>
#include <dhcp/option6_addrlst.h>