Skip to content

Commit

Permalink
refactor: remove unused StoreLocal instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
mrunix00 committed Mar 8, 2024
1 parent 623d29c commit f96a238
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 35 deletions.
27 changes: 0 additions & 27 deletions src/bytecode/instructions/StoreLocal.h

This file was deleted.

8 changes: 0 additions & 8 deletions tests/bytecode/compiler/to_string_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "bytecode/instructions/LoadLiteral.h"
#include "bytecode/instructions/LoadLocal.h"
#include "bytecode/instructions/Multiply.h"
#include "bytecode/instructions/StoreLocal.h"
#include "bytecode/instructions/Subtract.h"
#include <gtest/gtest.h>

Expand Down Expand Up @@ -54,13 +53,6 @@ TEST(instruction_to_string, load_literal) {
EXPECT_EQ(expected_result, actual_result);
}

TEST(instruction_to_string, store) {
const auto instruction = StoreLocal(12);
const auto expected_result = "StoreLocal $r12";
const auto actual_result = instruction.toString();
EXPECT_EQ(expected_result, actual_result);
}

TEST(instruction_to_string, equals) {
const auto instruction = Equals();
const auto expected_result = "Equals";
Expand Down

0 comments on commit f96a238

Please sign in to comment.