diff --git a/src/bytecode/bytecodeprototype.hh b/src/bytecode/bytecodeprototype.hh index 682986e..0a4a6bf 100644 --- a/src/bytecode/bytecodeprototype.hh +++ b/src/bytecode/bytecodeprototype.hh @@ -10,7 +10,6 @@ namespace tyche { struct BytecodePrototype { using ConstantValue = std::variant; - using Value = std::variant; struct Function { uint16_t n_pars; diff --git a/src/bytecode/tests.cc b/src/bytecode/tests.cc index 435ce45..a696065 100644 --- a/src/bytecode/tests.cc +++ b/src/bytecode/tests.cc @@ -10,18 +10,6 @@ using namespace tyche; -static void print(std::vector const& data) -{ - for (size_t i = 0; i < data.size(); ++i) { - if (i % 16 == 0) - printf("%04X : ", i); - printf("%02X ", data.at(i)); - if (i % 16 == 15) - printf("\n"); - } - printf("\n"); -} - TEST(ByteArray, ByteArray) { auto test = [](std::function const& f, std::vector const& expected) { @@ -125,7 +113,6 @@ TEST(Bytecode, Code) }; ByteArray ba = Bytecode::generate(bp); - // print(ba.data()); print(expected); ASSERT_EQ(ba.data(), expected); }