2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-03 15:35:17 +00:00

[3736] Fixed cppcheck warnings about unused functions.

This commit is contained in:
Marcin Siodelski
2015-03-09 10:39:24 +01:00
parent 659493d4a8
commit f17663b23d
3 changed files with 14 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (C) 2011-2014 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
@@ -379,6 +379,7 @@ Pkt4::setFile(const uint8_t* file, size_t fileLen /*= MAX_FILE_LEN*/) {
}
uint8_t
// cppcheck-suppress unusedFunction
Pkt4::DHCPTypeToBootpType(uint8_t dhcpType) {
switch (dhcpType) {
case DHCPDISCOVER:

View File

@@ -221,6 +221,16 @@ Host::hasReservation(const IPv6Resrv& reservation) const {
return (false);
}
void
Host::addClientClass4(const std::string& class_name) {
addClientClassInternal(dhcp4_client_classes_, class_name);
}
void
Host::addClientClass6(const std::string& class_name) {
addClientClassInternal(dhcp6_client_classes_, class_name);
}
void
Host::addClientClassInternal(ClientClasses& classes,
const std::string& class_name) {

View File

@@ -394,9 +394,7 @@ public:
/// @brief Adds new client class for DHCPv4.
///
/// @param class_name Class name.
void addClientClass4(const std::string& class_name) {
addClientClassInternal(dhcp4_client_classes_, class_name);
}
void addClientClass4(const std::string& class_name);
/// @brief Returns classes which DHCPv4 client is associated with.
const ClientClasses& getClientClasses4() const {
@@ -406,9 +404,7 @@ public:
/// @brief Adds new client class for DHCPv6.
///
/// @param class_name Class name.
void addClientClass6(const std::string& class_name) {
addClientClassInternal(dhcp6_client_classes_, class_name);
}
void addClientClass6(const std::string& class_name);
/// @brief Returns classes which DHCPv6 client is associated with.
const ClientClasses& getClientClasses6() const {