mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 13:16:26 +00:00
Remove a few unused functions (#2409)
They have been unused since commit 5fc48e3584
This commit is contained in:
parent
84ecf15322
commit
8518197053
|
@ -782,39 +782,3 @@ wasm_enlarge_memory(WASMModuleInstance *module, uint32 inc_page_count)
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(OS_ENABLE_HW_BOUND_CHECK) \
|
|
||||||
|| WASM_CPU_SUPPORTS_UNALIGNED_ADDR_ACCESS == 0 \
|
|
||||||
|| WASM_ENABLE_BULK_MEMORY != 0
|
|
||||||
uint32
|
|
||||||
wasm_get_num_bytes_per_page(WASMMemoryInstance *memory, void *node)
|
|
||||||
{
|
|
||||||
uint32 num_bytes_per_page;
|
|
||||||
#if WASM_ENABLE_SHARED_MEMORY != 0
|
|
||||||
if (node)
|
|
||||||
os_mutex_lock(&((WASMSharedMemNode *)node)->shared_mem_lock);
|
|
||||||
#endif
|
|
||||||
num_bytes_per_page = memory->num_bytes_per_page;
|
|
||||||
#if WASM_ENABLE_SHARED_MEMORY != 0
|
|
||||||
if (node)
|
|
||||||
os_mutex_unlock(&((WASMSharedMemNode *)node)->shared_mem_lock);
|
|
||||||
#endif
|
|
||||||
return num_bytes_per_page;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32
|
|
||||||
wasm_get_linear_memory_size(WASMMemoryInstance *memory, void *node)
|
|
||||||
{
|
|
||||||
uint32 linear_mem_size;
|
|
||||||
#if WASM_ENABLE_SHARED_MEMORY != 0
|
|
||||||
if (node)
|
|
||||||
os_mutex_lock(&((WASMSharedMemNode *)node)->shared_mem_lock);
|
|
||||||
#endif
|
|
||||||
linear_mem_size = memory->num_bytes_per_page * memory->cur_page_count;
|
|
||||||
#if WASM_ENABLE_SHARED_MEMORY != 0
|
|
||||||
if (node)
|
|
||||||
os_mutex_unlock(&((WASMSharedMemNode *)node)->shared_mem_lock);
|
|
||||||
#endif
|
|
||||||
return linear_mem_size;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -24,16 +24,6 @@ wasm_runtime_memory_destroy();
|
||||||
unsigned
|
unsigned
|
||||||
wasm_runtime_memory_pool_size();
|
wasm_runtime_memory_pool_size();
|
||||||
|
|
||||||
#if !defined(OS_ENABLE_HW_BOUND_CHECK) \
|
|
||||||
|| WASM_CPU_SUPPORTS_UNALIGNED_ADDR_ACCESS == 0 \
|
|
||||||
|| WASM_ENABLE_BULK_MEMORY != 0
|
|
||||||
uint32
|
|
||||||
wasm_get_num_bytes_per_page(WASMMemoryInstance *memory, void *node);
|
|
||||||
|
|
||||||
uint32
|
|
||||||
wasm_get_linear_memory_size(WASMMemoryInstance *memory, void *node);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user