From: Marcin Siodelski Date: Fri, 31 Jan 2014 18:29:08 +0000 (+0100) Subject: [3242] Removed unused constant pointing to file carrying server id. X-Git-Tag: bind10-1.2.0beta1-release~63^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abb2b61c859ff5b584a1ec75203e2e4d6914457a;p=thirdparty%2Fkea.git [3242] Removed unused constant pointing to file carrying server id. --- diff --git a/src/bin/dhcp4/tests/dhcp4_test_utils.cc b/src/bin/dhcp4/tests/dhcp4_test_utils.cc index e983e7b939..8944b29e6b 100644 --- a/src/bin/dhcp4/tests/dhcp4_test_utils.cc +++ b/src/bin/dhcp4/tests/dhcp4_test_utils.cc @@ -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();