summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-05-03 15:04:29 -0400
committerJasper St. Pierre <jstpierre@mecheye.net>2014-05-20 11:15:08 -0400
commitfe645b888b589b7e7d9cc34be7809e2ff6d62cc3 (patch)
tree932963c49fde90a3504e2e0d48ccd2b0eefd5d1c /Source/Core
parent56228cea5d4b0cb0b5ca60d697db7f9719e3635b (diff)
BPFunctions: Remove use of a dumb method
GetPointer serves no purpose.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoCommon/BPFunctions.cpp5
-rw-r--r--Source/Core/VideoCommon/BPFunctions.h1
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp4
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);