diff --git a/Source/Core/Core/IOS/Device.cpp b/Source/Core/Core/IOS/Device.cpp index e93f867f83..5d38c7efff 100644 --- a/Source/Core/Core/IOS/Device.cpp +++ b/Source/Core/Core/IOS/Device.cpp @@ -72,12 +72,6 @@ IOCtlVRequest::IOCtlVRequest(const u32 address_) : Request(address_) } } -bool IOCtlVRequest::HasInputVectorWithAddress(const u32 vector_address) const -{ - return std::any_of(in_vectors.begin(), in_vectors.end(), - [&](const auto& in_vector) { return in_vector.address == vector_address; }); -} - bool IOCtlVRequest::HasNumberOfValidVectors(const size_t in_count, const size_t io_count) const { if (in_vectors.size() != in_count || io_vectors.size() != io_count) diff --git a/Source/Core/Core/IOS/Device.h b/Source/Core/Core/IOS/Device.h index 75df14a2a8..91d2dbbe36 100644 --- a/Source/Core/Core/IOS/Device.h +++ b/Source/Core/Core/IOS/Device.h @@ -153,7 +153,6 @@ struct IOCtlVRequest final : Request std::vector in_vectors; std::vector io_vectors; explicit IOCtlVRequest(u32 address); - bool HasInputVectorWithAddress(u32 vector_address) const; bool HasNumberOfValidVectors(size_t in_count, size_t io_count) const; void Dump(const std::string& description, LogTypes::LOG_TYPE type = LogTypes::IOS, LogTypes::LOG_LEVELS level = LogTypes::LINFO) const; diff --git a/Source/Core/Core/IOS/ES/ES.cpp b/Source/Core/Core/IOS/ES/ES.cpp index 12b1c977db..29ea0de0fb 100644 --- a/Source/Core/Core/IOS/ES/ES.cpp +++ b/Source/Core/Core/IOS/ES/ES.cpp @@ -345,13 +345,6 @@ IPCCommandResult ES::IOCtlV(const IOCtlVRequest& request) { DEBUG_LOG(IOS_ES, "%s (0x%x)", GetDeviceName().c_str(), request.request); - // Clear the IO buffers. Note that this is unsafe for other ioctlvs. - for (const auto& io_vector : request.io_vectors) - { - if (!request.HasInputVectorWithAddress(io_vector.address)) - Memory::Memset(io_vector.address, 0, io_vector.size); - } - switch (request.request) { case IOCTL_ES_ADDTICKET: