From c056708dc85c0443adb2f3109998a5b29229aa62 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 27 May 2018 18:39:54 -0400 Subject: [PATCH] CDUtils: Remove unused parameter in IsCDROM() It was only ever passed nullptr, and even then, nothing was actually done with the parameter. --- Source/Core/Common/CDUtils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/CDUtils.cpp b/Source/Core/Common/CDUtils.cpp index 635df4309e..297934ba7c 100644 --- a/Source/Core/Common/CDUtils.cpp +++ b/Source/Core/Common/CDUtils.cpp @@ -160,7 +160,7 @@ static bool IsDevice(const std::string& source_name) } // Check a device to see if it is a DVD/CD-ROM drive -static bool IsCDROM(const std::string& drive, char* mnttype) +static bool IsCDROM(const std::string& drive) { // Check if the device exists if (!IsDevice(drive)) @@ -190,7 +190,7 @@ std::vector GetCDDevices() for (unsigned int j = checklist[i].num_min; j <= checklist[i].num_max; ++j) { std::string drive = StringFromFormat(checklist[i].format, j); - if (IsCDROM(drive, nullptr)) + if (IsCDROM(drive)) { drives.push_back(std::move(drive)); }