]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3242] Removed unused constant pointing to file carrying server id.
authorMarcin Siodelski <marcin@isc.org>
Fri, 31 Jan 2014 18:29:08 +0000 (19:29 +0100)
committerMarcin Siodelski <marcin@isc.org>
Fri, 31 Jan 2014 18:29:08 +0000 (19:29 +0100)
src/bin/dhcp4/tests/dhcp4_test_utils.cc

index e983e7b93976042caaa6490d6dd73c0a05f25090..8944b29e6b517e6a58350bf6601f532cf1c1a534 100644 (file)
@@ -34,9 +34,6 @@ namespace isc {
 namespace dhcp {
 namespace test {
 
-/// dummy server-id file location
-static const char* SRVID_FILE = "server-id-test.txt";
-
 Dhcpv4SrvTest::Dhcpv4SrvTest()
 :rcode_(-1) {
     subnet_ = Subnet4Ptr(new Subnet4(IOAddress("192.0.2.0"), 24, 1000,
@@ -52,9 +49,6 @@ Dhcpv4SrvTest::Dhcpv4SrvTest()
     Option4AddrLstPtr opt_routers(new Option4AddrLst(DHO_ROUTERS));
     opt_routers->setAddress(IOAddress("192.0.2.2"));
     subnet_->addOption(opt_routers, false, "dhcp4");
-
-    // it's ok if that fails. There should not be such a file anyway
-    unlink(SRVID_FILE);
 }
 
 Dhcpv4SrvTest::~Dhcpv4SrvTest() {
@@ -387,9 +381,6 @@ void Dhcpv4SrvTest::TearDown() {
 
     CfgMgr::instance().deleteSubnets4();
 
-    // Let's clean up if there is such a file.
-    unlink(SRVID_FILE);
-
     // Close all open sockets.
     IfaceMgr::instance().closeSockets();