summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/tests/rdatafields_unittest.cc
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>2011-04-06 10:38:50 +0200
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>2011-04-06 10:38:50 +0200
commita125177e363f66375aca5af53649b8e369af58e6 (patch)
tree93a62f64a813b60f421a919f34ac778a5757f3cf /src/lib/dns/tests/rdatafields_unittest.cc
parent[trac404] Small cleanup & comment update (diff)
downloadkea-a125177e363f66375aca5af53649b8e369af58e6.tar.xz
kea-a125177e363f66375aca5af53649b8e369af58e6.zip
[trac404] Remove duplicate code
Diffstat (limited to 'src/lib/dns/tests/rdatafields_unittest.cc')
-rw-r--r--src/lib/dns/tests/rdatafields_unittest.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/dns/tests/rdatafields_unittest.cc b/src/lib/dns/tests/rdatafields_unittest.cc
index 7c17b542db..7ab704131a 100644
--- a/src/lib/dns/tests/rdatafields_unittest.cc
+++ b/src/lib/dns/tests/rdatafields_unittest.cc
@@ -337,7 +337,7 @@ TEST_F(RdataFieldsTest, getFieldSpecWithBadFieldId) {
// tested via other tests above.
class DummyRdata : public Rdata {
public:
- enum Mode { CLEAR, SKIP, TRIM, WRITEUINT16AT };
+ enum Mode { CLEAR, SKIP, TRIM };
explicit DummyRdata(Mode mode) : mode_(mode) {}
DummyRdata(const DummyRdata& source) : Rdata(), mode_(source.mode_) {}
virtual ~DummyRdata() {}
@@ -354,9 +354,6 @@ public:
case TRIM:
renderer.trim(2);
break;
- case WRITEUINT16AT:
- renderer.writeUint16At(0, 0);
- break;
}
}
@@ -373,7 +370,5 @@ TEST(RdataFieldComposerTest, unusedMethods) {
EXPECT_THROW(RdataFields(DummyRdata(DummyRdata::CLEAR)), isc::Unexpected);
EXPECT_THROW(RdataFields(DummyRdata(DummyRdata::SKIP)), isc::Unexpected);
EXPECT_THROW(RdataFields(DummyRdata(DummyRdata::TRIM)), isc::Unexpected);
- EXPECT_THROW(RdataFields(DummyRdata(DummyRdata::WRITEUINT16AT)),
- isc::Unexpected);
}
}