summaryrefslogtreecommitdiffstats
path: root/src/lib/dhcp/pkt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dhcp/pkt.h')
-rw-r--r--src/lib/dhcp/pkt.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/lib/dhcp/pkt.h b/src/lib/dhcp/pkt.h
index 89cfb4c39c..dd1e395f39 100644
--- a/src/lib/dhcp/pkt.h
+++ b/src/lib/dhcp/pkt.h
@@ -327,13 +327,6 @@ public:
return (!required ? classes_ : required_classes_);
}
- /// @brief Returns true if the subclass set is not empty
- ///
- /// @return true if there is at least one subclass associated with the packet.
- bool hasSubClasses() const {
- return (!subclasses_.empty());
- }
-
/// @brief Returns the class set including template classes associated with
/// subclasses
///
@@ -343,10 +336,7 @@ public:
/// @return if required is false (the default) the classes the
/// packet belongs to else the classes which are required to be
/// evaluated.
- const ClientClasses getClassesAndSubClasses() const {
- if (subclasses_.empty()) {
- return (classes_);
- }
+ const SubClassRelationContainer& getSubClassesRelations() const {
return (subclasses_);
}
@@ -662,7 +652,7 @@ public:
/// iterate over existing classes. Having it public also solves the problem
/// of returned reference lifetime. It is preferred to use @ref inClass and
/// @ref addSubClass to operate on this field.
- ClientClasses subclasses_;
+ SubClassRelationContainer subclasses_;
/// @brief Collection of options present in this message.
///