From a3585870b981ece7b5074407272fada90d56406b Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Wed, 28 Dec 2016 18:17:52 +0200 Subject: [PATCH] remove unused code --- lib/arm/arm_machine.rb | 6 ------ lib/register/register_value.rb | 3 --- 2 files changed, 9 deletions(-) diff --git a/lib/arm/arm_machine.rb b/lib/arm/arm_machine.rb index 15eea118..961e4450 100644 --- a/lib/arm/arm_machine.rb +++ b/lib/arm/arm_machine.rb @@ -77,7 +77,6 @@ module Arm options = {} if options == nil options.merge defaults options[:opcode] = inst - first = Register::RegisterValue.convert(first) clazz.new(first , options) end end @@ -88,8 +87,6 @@ module Arm def_method(inst) do |left ,right , options = nil| options = {} if options == nil options.merge defaults - left = Register::RegisterValue.convert(left) - right = Register::RegisterValue.convert(right) options[:opcode] = inst clazz.new(left , right ,options) end @@ -102,9 +99,6 @@ module Arm options = {} if options == nil options.merge defaults options[:opcode] = inst - result = Register::RegisterValue.convert(result) - left = Register::RegisterValue.convert(left) - right = Register::RegisterValue.convert(right) clazz.new(result, left , right ,options) end end diff --git a/lib/register/register_value.rb b/lib/register/register_value.rb index d18502c7..983460c5 100644 --- a/lib/register/register_value.rb +++ b/lib/register/register_value.rb @@ -58,9 +58,6 @@ module Register @symbol end - def self.convert(unused) - unused - end end # Here we define the mapping from virtual machine objects, to register machine registers