diff --git a/Libraries/LibJS/Bytecode/Instruction.cpp b/Libraries/LibJS/Bytecode/Instruction.cpp index a550c32efec..b343c6cef2a 100644 --- a/Libraries/LibJS/Bytecode/Instruction.cpp +++ b/Libraries/LibJS/Bytecode/Instruction.cpp @@ -105,11 +105,6 @@ UnrealizedSourceRange InstructionStreamIterator::source_range() const }; } -RefPtr InstructionStreamIterator::source_code() const -{ - return m_executable ? m_executable->source_code.ptr() : nullptr; -} - Operand::Operand(Register reg) : m_type(Type::Register) , m_index(reg.index()) diff --git a/Libraries/LibJS/Bytecode/Instruction.h b/Libraries/LibJS/Bytecode/Instruction.h index e8aa711dd46..00ea60b96b5 100644 --- a/Libraries/LibJS/Bytecode/Instruction.h +++ b/Libraries/LibJS/Bytecode/Instruction.h @@ -205,7 +205,6 @@ public: } UnrealizedSourceRange source_range() const; - RefPtr source_code() const; Executable const* executable() const { return m_executable; }