From 0dc4bcf101bf315c96640434999213947f06c217 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Thu, 22 Sep 2022 07:53:37 -0700 Subject: [PATCH] Remove some unused constants. NFC TABLE_BASE usage was removed in #3211. MEMORY_BASE usage was removed in #3089. NEW_SIZE usage was removed in #3180. --- src/shared-constants.h | 3 --- src/wasm/wasm.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/shared-constants.h b/src/shared-constants.h index 5b85dd74d72..0d2cc73ad79 100644 --- a/src/shared-constants.h +++ b/src/shared-constants.h @@ -21,10 +21,7 @@ namespace wasm { -extern Name MEMORY_BASE; -extern Name TABLE_BASE; extern Name STACK_POINTER; -extern Name NEW_SIZE; extern Name MODULE; extern Name START; extern Name FUNC; diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index 34bcf68c7c2..724fc12e2a0 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -54,10 +54,7 @@ const char* MultiMemoriesFeature = "multi-memories"; } // namespace UserSections } // namespace BinaryConsts -Name MEMORY_BASE("__memory_base"); -Name TABLE_BASE("__table_base"); Name STACK_POINTER("__stack_pointer"); -Name NEW_SIZE("newSize"); Name MODULE("module"); Name START("start"); Name GLOBAL("global");