From 64a92fb9f4b41c96c9ce1122bdd759d825c70370 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Fri, 16 Oct 2015 18:07:17 +0300 Subject: [PATCH] remove dead code was only used by now removed set instruction --- lib/register/instructions/get_slot.rb | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/lib/register/instructions/get_slot.rb b/lib/register/instructions/get_slot.rb index 1f7833b7..95adc500 100644 --- a/lib/register/instructions/get_slot.rb +++ b/lib/register/instructions/get_slot.rb @@ -44,26 +44,4 @@ module Register to = resolve_to_register to GetSlot.new( source , array , index , to) end - - def self.get_slot_to source , slot , to - array = nil - index = nil - case slot - when Virtual::Self - array = :message - index = :receiver - when Virtual::Return - array = :message - index = :return_value - when Virtual::FrameSlot - array = :frame - index = slot.index - when Virtual::ArgSlot - array = :message - index = slot.index - else - raise "not done #{slot}" - end - get_slot( source , array , index , to) - end end