From 963b0f76cfc4847318ece4267533151db73494d5 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 8 Jan 2022 21:57:24 +0100 Subject: LibJS: Remove now unused VM::{set_,}last_value() This was effectively replaced by correct use of completions, including UpdateEmpty semantics. --- Userland/Libraries/LibJS/Bytecode/Interpreter.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Userland/Libraries/LibJS/Bytecode') diff --git a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp index ab704b4985..9ac95b6339 100644 --- a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -45,8 +45,6 @@ Interpreter::ValueAndFrame Interpreter::run_and_return_frame(Executable const& e TemporaryChange restore_executable { m_current_executable, &executable }; - vm().set_last_value(Badge {}, {}); - ExecutionContext execution_context(vm().heap()); if (vm().execution_context_stack().is_empty()) { execution_context.this_value = &global_object(); @@ -137,8 +135,6 @@ Interpreter::ValueAndFrame Interpreter::run_and_return_frame(Executable const& e } } - vm().set_last_value(Badge {}, accumulator()); - OwnPtr frame; if (!m_manually_entered_frames.last()) { frame = m_register_windows.take_last(); -- cgit v1.2.3