aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei <bunneidev@gmail.com>2014-07-05 10:12:27 -0400
committerGravatar bunnei <bunneidev@gmail.com>2014-07-05 10:24:54 -0400
commit882dc0792904ec47d57a356a3c9e8fc1a240cc73 (patch)
tree3d648439dd6bc8f47cf42b07af234b089d32bdad /src
parent7b7a435094654da2a707a2089ed5ca9584679c38 (diff)
Memory: Removed deprecated MapBlock_Shared function.
Diffstat (limited to 'src')
-rw-r--r--src/core/mem_map.h8
-rw-r--r--src/core/mem_map_funcs.cpp22
2 files changed, 0 insertions, 30 deletions
diff --git a/src/core/mem_map.h b/src/core/mem_map.h
index 70a8dedc..12941f55 100644
--- a/src/core/mem_map.h
+++ b/src/core/mem_map.h
@@ -150,14 +150,6 @@ void WriteBlock(const u32 addr, const u8* data, const int size);
u8* GetPointer(const u32 Address);
/**
- * Maps a block of memory in shared memory
- * @param handle Handle to map memory block for
- * @param addr Address to map memory block to
- * @param permissions Memory map permissions
- */
-u32 MapBlock_Shared(u32 handle, u32 addr,u32 permissions) ;
-
-/**
* Maps a block of memory on the heap
* @param size Size of block in bytes
* @param operation Memory map operation type
diff --git a/src/core/mem_map_funcs.cpp b/src/core/mem_map_funcs.cpp
index d0ca85cc..0342122d 100644
--- a/src/core/mem_map_funcs.cpp
+++ b/src/core/mem_map_funcs.cpp
@@ -178,28 +178,6 @@ u8 *GetPointer(const u32 addr) {
}
/**
- * Maps a block of memory in shared memory
- * @param handle Handle to map memory block for
- * @param addr Address to map memory block to
- * @param permissions Memory map permissions
- */
-u32 MapBlock_Shared(u32 handle, u32 addr,u32 permissions) {
- MemoryBlock block;
-
- block.handle = handle;
- block.base_address = addr;
- block.permissions = permissions;
-
- if (g_shared_map.size() > 0) {
- const MemoryBlock last_block = g_shared_map.rbegin()->second;
- block.address = last_block.address + last_block.size;
- }
- g_shared_map[block.GetVirtualAddress()] = block;
-
- return block.GetVirtualAddress();
-}
-
-/**
* Maps a block of memory on the heap
* @param size Size of block in bytes
* @param operation Memory map operation type