summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/handle_table.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-11-22 00:30:58 +0100
committerLioncash <mathew1800@gmail.com>2018-11-22 00:31:01 +0100
commit0e35f1bb18b71fcb936b3a00e6bda0fa82a0b59c (patch)
tree53941cfab7535f6fa7df24ee777d086ce4f495ec /src/core/hle/kernel/handle_table.h
parentkernel/handle_table: Restrict handle table size to 1024 entries (diff)
downloadyuzu-0e35f1bb18b71fcb936b3a00e6bda0fa82a0b59c.tar
yuzu-0e35f1bb18b71fcb936b3a00e6bda0fa82a0b59c.tar.gz
yuzu-0e35f1bb18b71fcb936b3a00e6bda0fa82a0b59c.tar.bz2
yuzu-0e35f1bb18b71fcb936b3a00e6bda0fa82a0b59c.tar.lz
yuzu-0e35f1bb18b71fcb936b3a00e6bda0fa82a0b59c.tar.xz
yuzu-0e35f1bb18b71fcb936b3a00e6bda0fa82a0b59c.tar.zst
yuzu-0e35f1bb18b71fcb936b3a00e6bda0fa82a0b59c.zip
Diffstat (limited to 'src/core/hle/kernel/handle_table.h')
-rw-r--r--src/core/hle/kernel/handle_table.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.h
index ae3116afc..e3f3e3fb8 100644
--- a/src/core/hle/kernel/handle_table.h
+++ b/src/core/hle/kernel/handle_table.h
@@ -93,13 +93,6 @@ private:
/// This is the maximum limit of handles allowed per process in Horizon
static constexpr std::size_t MAX_COUNT = 1024;
- static u16 GetSlot(Handle handle) {
- return handle >> 15;
- }
- static u16 GetGeneration(Handle handle) {
- return handle & 0x7FFF;
- }
-
/// Stores the Object referenced by the handle or null if the slot is empty.
std::array<SharedPtr<Object>, MAX_COUNT> objects;