remove unused methods

and a whole lot more index fixes
This commit is contained in:
Torsten Ruger
2018-05-14 20:50:52 +03:00
parent 5d3c70da89
commit e237bc625a
10 changed files with 25 additions and 44 deletions

View File

@ -38,7 +38,6 @@ module Parfait
101.times { @next_integer = Integer.new(0,@next_integer) }
50.times do
@first_message = Message.new message
#puts "INIT caller #{message.object_id} to #{@first_message.object_id}"
message.set_caller @first_message
message = @first_message
end

View File

@ -65,8 +65,7 @@ module Parfait
# determine if method has a local variable or tmp (anonymous local) by given name
def has_local( name )
raise "has_local #{name}.#{name.class}" unless name.is_a? Symbol
index = frame_type.variable_index( name )
index ? (index - 1) : index
frame_type.variable_index( name )
end
def add_local( name , type )
@ -75,18 +74,6 @@ module Parfait
@frame_type = @frame_type.add_instance_variable(name,type)
end
def frame_length
frame_type.instance_length - 1
end
def locals_name( index )
frame_type.names.get(index + 1)
end
def locals_type( index )
frame_type.types.get(index + 1)
end
def rxf_reference_name
"Method: " + @name.to_s
end