]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[trac3706] Remove unused variables
authorShawn Routhier <sar@isc.org>
Thu, 26 Feb 2015 05:16:27 +0000 (21:16 -0800)
committerShawn Routhier <sar@isc.org>
Thu, 26 Feb 2015 05:16:27 +0000 (21:16 -0800)
Remove some unread variables as flagged by cppcheck

src/lib/dhcpsrv/memfile_lease_mgr.cc
src/lib/dhcpsrv/tests/memfile_lease_mgr_unittest.cc

index 0172298aecce71a4bc5f97c3bd46728a5e3e7ac0..f858dc8be53c81181b971daaaf4661f2754b13a1 100644 (file)
@@ -806,8 +806,7 @@ Memfile_LeaseMgr::lfcSetup() {
 template<typename LeaseFileType>
 void Memfile_LeaseMgr::lfcExecute(boost::shared_ptr<LeaseFileType>& 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
index 13b015caf415b37664a4404ff2bcf24b2ac9b258..72de999c6a18f5c4afcc3f5d5a9f2234c23b5d87 100644 (file)
@@ -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();
         }