From 00ae8cd6146d8e73ee73873df1e320621b9dac89 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 14 Oct 2022 16:46:30 +0900 Subject: [PATCH] Remove unused wasm_runtime_is_module_registered (#1594) It is unused and the same functionality is provided by `wasm_runtime_find_module_registered`. --- core/iwasm/common/wasm_runtime_common.c | 6 ------ core/iwasm/common/wasm_runtime_common.h | 3 --- 2 files changed, 9 deletions(-) diff --git a/core/iwasm/common/wasm_runtime_common.c b/core/iwasm/common/wasm_runtime_common.c index 1a4b1a72..c528e7f0 100644 --- a/core/iwasm/common/wasm_runtime_common.c +++ b/core/iwasm/common/wasm_runtime_common.c @@ -702,12 +702,6 @@ wasm_runtime_find_module_registered(const char *module_name) return module ? module->module : NULL; } -bool -wasm_runtime_is_module_registered(const char *module_name) -{ - return NULL != wasm_runtime_find_module_registered(module_name); -} - /* * simply destroy all */ diff --git a/core/iwasm/common/wasm_runtime_common.h b/core/iwasm/common/wasm_runtime_common.h index 6f715274..87473397 100644 --- a/core/iwasm/common/wasm_runtime_common.h +++ b/core/iwasm/common/wasm_runtime_common.h @@ -718,9 +718,6 @@ wasm_runtime_register_module_internal(const char *module_name, void wasm_runtime_unregister_module(const WASMModuleCommon *module); -bool -wasm_runtime_is_module_registered(const char *module_name); - bool wasm_runtime_add_loading_module(const char *module_name, char *error_buf, uint32 error_buf_size);