From: Shawn Routhier Date: Thu, 26 Feb 2015 05:16:27 +0000 (-0800) Subject: [trac3706] Remove unused variables X-Git-Tag: trac3745_base~5^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc1d69ea63495500f3010f3778a85c21b3dc2068;p=thirdparty%2Fkea.git [trac3706] Remove unused variables Remove some unread variables as flagged by cppcheck --- diff --git a/src/lib/dhcpsrv/memfile_lease_mgr.cc b/src/lib/dhcpsrv/memfile_lease_mgr.cc index 0172298aec..f858dc8be5 100644 --- a/src/lib/dhcpsrv/memfile_lease_mgr.cc +++ b/src/lib/dhcpsrv/memfile_lease_mgr.cc @@ -806,8 +806,7 @@ Memfile_LeaseMgr::lfcSetup() { template void Memfile_LeaseMgr::lfcExecute(boost::shared_ptr& lease_file) { bool do_lfc = true; - // This string will hold a reason for the failure to rote the lease files. - std::string error_string = "(no details)"; + // Check if the copy of the lease file exists already. If it does, it // is an indication that another LFC instance may be in progress or // may be stalled. In that case we don't want to rotate the current diff --git a/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc b/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc index 13b015caf4..72de999c6a 100644 --- a/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc +++ b/src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc @@ -155,7 +155,6 @@ public: ++i) { Memfile_LeaseMgr::LFCFileType type = static_cast< Memfile_LeaseMgr::LFCFileType>(i); - std::string suffix = Memfile_LeaseMgr::appendSuffix(base_name, type); LeaseFileIO io(Memfile_LeaseMgr::appendSuffix(base_name, type)); io.removeFile(); }