From fe645b888b589b7e7d9cc34be7809e2ff6d62cc3 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 3 May 2014 15:04:29 -0400 Subject: [PATCH] BPFunctions: Remove use of a dumb method GetPointer serves no purpose. --- Source/Core/VideoCommon/BPFunctions.cpp | 5 ----- Source/Core/VideoCommon/BPFunctions.h | 1 - Source/Core/VideoCommon/BPStructs.cpp | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp index ae93e8077a..4d3be45498 100644 --- a/Source/Core/VideoCommon/BPFunctions.cpp +++ b/Source/Core/VideoCommon/BPFunctions.cpp @@ -239,11 +239,6 @@ bool GetConfig(const int &type) } } -u8 *GetPointer(const u32 &address) -{ - return Memory::GetPointer(address); -} - void SetInterlacingMode(const BPCmd &bp) { // TODO diff --git a/Source/Core/VideoCommon/BPFunctions.h b/Source/Core/VideoCommon/BPFunctions.h index 53c0af0861..d409a02a2f 100644 --- a/Source/Core/VideoCommon/BPFunctions.h +++ b/Source/Core/VideoCommon/BPFunctions.h @@ -35,7 +35,6 @@ void CopyEFB(u32 dstAddr, unsigned int dstFormat, PEControl::PixelFormat srcForm const EFBRectangle& srcRect, bool isIntensity, bool scaleByHalf); void ClearScreen(const EFBRectangle &rc); void OnPixelFormatChange(); -u8 *GetPointer(const u32 &address); bool GetConfig(const int &type); void SetInterlacingMode(const BPCmd &bp); }; diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index d3caaf49d3..2b6fe8441a 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -273,9 +273,9 @@ void BPWritten(const BPCmd& bp) // TODO - figure out a cleaner way. if (GetConfig(CONFIG_ISWII)) - ptr = GetPointer(bpmem.tmem_config.tlut_src << 5); + ptr = Memory::GetPointer(bpmem.tmem_config.tlut_src << 5); else - ptr = GetPointer((bpmem.tmem_config.tlut_src & 0xFFFFF) << 5); + ptr = Memory::GetPointer((bpmem.tmem_config.tlut_src & 0xFFFFF) << 5); if (ptr) memcpy_gc(texMem + tlutTMemAddr, ptr, tlutXferCount);