service: Use ReadBufferSpan where it is trivial to do so

This commit is contained in:
ameerj 2022-12-25 13:42:32 -05:00
parent fbc375f0de
commit 7ffd624248
31 changed files with 78 additions and 77 deletions

View file

@ -346,7 +346,6 @@ std::vector<u8> HLERequestContext::ReadBuffer(std::size_t buffer_index) const {
}
std::span<const u8> HLERequestContext::ReadBufferSpan(std::size_t buffer_index) const {
LOG_CRITICAL(Debug, "called");
const bool is_buffer_a{BufferDescriptorA().size() > buffer_index &&
BufferDescriptorA()[buffer_index].Size()};
if (is_buffer_a) {