From 99eedced4a8731caab92719fbe2a5eeb34310ec9 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 19 Apr 2020 01:56:01 -0400 Subject: [PATCH] core/memory: Fix #5246 We can simplify the overload sent to be less confusing (and error-prone), while also unbreaking 32-bit builds. --- src/core/memory.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/core/memory.h b/src/core/memory.h index 66b28d87d7..a698944a35 100644 --- a/src/core/memory.h +++ b/src/core/memory.h @@ -99,14 +99,6 @@ struct PageTable { VAddr idx; }; - Entry operator[](VAddr idx) { - return Entry(*this, idx); - } - - u8* operator[](VAddr idx) const { - return raw[idx]; - } - Entry operator[](std::size_t idx) { return Entry(*this, static_cast(idx)); }