From f1d197ec5f75cf5dad54df80dbe3a7337965bcea Mon Sep 17 00:00:00 2001 From: krcroft Date: Tue, 31 Mar 2020 17:55:19 -0700 Subject: [PATCH] Cleanup PVS warning unecessary code --- src/dos/dos_programs.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dos/dos_programs.cpp b/src/dos/dos_programs.cpp index ca1f906b..e9e074be 100644 --- a/src/dos/dos_programs.cpp +++ b/src/dos/dos_programs.cpp @@ -1181,7 +1181,6 @@ public: } char drive; - std::string label; std::vector paths; std::string umount; /* Check for unmounting */ @@ -1365,9 +1364,7 @@ public: // Tear-down all prior drives when we hit a problem WriteOut(MSG_Get("PROGRAM_IMGMOUNT_CANT_CREATE")); for (auto pImgDisk : imgDisks) { - if (pImgDisk) { - delete pImgDisk; - } + delete pImgDisk; } return; }