From 9017cd14c882cff081426eba242293854ae9f7d1 Mon Sep 17 00:00:00 2001 From: Paulo Matos Date: Tue, 16 Jul 2024 11:16:07 +0200 Subject: [PATCH] Remove unused function MmapOverride --- unittests/APITests/Allocator.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/unittests/APITests/Allocator.cpp b/unittests/APITests/Allocator.cpp index f1d5a8bb7..9c7119d68 100644 --- a/unittests/APITests/Allocator.cpp +++ b/unittests/APITests/Allocator.cpp @@ -5,14 +5,6 @@ namespace { using FEXCore::Allocator::MemoryRegion; -static std::optional LastStackMapping; -void* MmapOverride(void* Ptr, size_t Size, int Flags, int, int, __off_t) { - if (Flags != PROT_NONE) { - LastStackMapping = MemoryRegion {Ptr, Size}; - } - return Ptr; -} - struct Fixture { Fixture() { fd = mkstemp(filename);