diff --git a/runtime/layout_info.cpp b/runtime/layout_info.cpp index 4d28f0c64bde8c2aa035e41064f958d44848a91f..4538f315790d0053f9a28be1b3bd5eeb1a212a74 100644 --- a/runtime/layout_info.cpp +++ b/runtime/layout_info.cpp @@ -69,12 +69,10 @@ void LayoutInfo::GetAllKeys(const JSThread *thread, int end, int offset, TaggedA void LayoutInfo::GetAllKeys([[maybe_unused]] const JSThread *thread, int end, std::vector &key_vector) { ASSERT(end <= NumberOfElements()); - int enum_keys = 0; for (int i = 0; i < end; i++) { JSTaggedValue key = GetKey(i); if (key.IsString()) { key_vector.emplace_back(key); - enum_keys++; } } }