Permalink
Browse files

CDUtils: Remove unused parameter in IsCDROM()

It was only ever passed nullptr, and even then, nothing was actually
done with the parameter.
  • Loading branch information...
lioncash committed May 27, 2018
1 parent 470b09f commit c056708dc85c0443adb2f3109998a5b29229aa62
Showing with 2 additions and 2 deletions.
  1. +2 −2 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<std::string> 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));
}

0 comments on commit c056708

Please sign in to comment.