Commit 735f817c authored by Stephen Morris's avatar Stephen Morris
Browse files

[trac998] Get rid of default constructor

parent 79ec6c32
......@@ -137,13 +137,6 @@ private:
static const size_t IPV4_SIZE = sizeof(struct in_addr);
public:
/// \brief Default Constructor
///
/// Constructs an empty IPCheck object. The address family returned will
/// be zero.
IPCheck() : address_(), mask_(), family_(0)
{}
/// \brief IPV4 Constructor
///
/// Constructs an IPCheck object from a network address given as a
......
......@@ -166,13 +166,6 @@ TEST(IPFunctionCheck, SplitIPAddress) {
EXPECT_THROW(splitIPAddress(" 1/ "), isc::InvalidParameter);
}
// *** General tests ***
TEST(IPCheck, DefaultConstructor) {
IPCheck<GeneralAddress> acl;
EXPECT_EQ(0, acl.getFamily());
}
// *** IPV4 Tests ***
// Check that the constructor stores the elements correctly and, for the
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment