From 97ba666df269355e3e29a3ba060084c77ca45e60 Mon Sep 17 00:00:00 2001 From: Evgeny Gerlits Date: Wed, 15 Feb 2023 17:21:34 +0300 Subject: [PATCH] Fix a bug: a variable is defined, written but not read. Change-Id: I980871dd4af47637d995d188503bad36ac1ae613 Signed-off-by: Evgeny Gerlits --- runtime/layout_info.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/runtime/layout_info.cpp b/runtime/layout_info.cpp index 4d28f0c64..4538f3157 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++; } } } -- Gitee