remove unused attributes functions
This commit is contained in:
parent
7bb1c361a5
commit
5f3744d6af
@ -16,9 +16,6 @@
|
||||
module Parfait
|
||||
class Class < Object
|
||||
include Behaviour
|
||||
def self.attributes
|
||||
[:instance_type , :name , :super_class_name , :instance_names , :instance_methods]
|
||||
end
|
||||
|
||||
attr_reader :instance_type , :name , :instance_methods , :super_class_name
|
||||
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
module Parfait
|
||||
class Dictionary < Object
|
||||
def self.attributes
|
||||
[:keys, :values]
|
||||
end
|
||||
|
||||
# only empty initialization for now
|
||||
#
|
||||
|
@ -68,10 +68,6 @@ module Parfait
|
||||
set_internal_word( 2 , len)
|
||||
end
|
||||
|
||||
def self.attributes
|
||||
[:indexed_length]
|
||||
end
|
||||
|
||||
def indexed_length
|
||||
get_length()
|
||||
end
|
||||
|
@ -9,12 +9,8 @@
|
||||
|
||||
module Parfait
|
||||
class Message < Object
|
||||
def self.attributes
|
||||
[:next_message , :receiver , :locals , :return_address ,
|
||||
:return_value, :caller , :name , :arguments]
|
||||
end
|
||||
|
||||
attr_reader :locals , :receiver , :return_value , :name
|
||||
attr_reader :locals , :receiver , :return_value , :name
|
||||
attr_accessor :next_message
|
||||
|
||||
def initialize next_m
|
||||
|
@ -46,10 +46,6 @@ module Parfait
|
||||
end
|
||||
end
|
||||
|
||||
def self.attributes
|
||||
[:classes , :types, :first_message]
|
||||
end
|
||||
|
||||
attr_reader :classes , :first_message
|
||||
|
||||
def each_type
|
||||
|
@ -34,9 +34,7 @@
|
||||
|
||||
module Parfait
|
||||
class Type < Object
|
||||
def self.attributes
|
||||
[:names , :types , :object_class , :methods ]
|
||||
end
|
||||
|
||||
attr_reader :object_class , :names , :types , :methods
|
||||
|
||||
def self.for_hash( object_class , hash)
|
||||
|
@ -22,10 +22,6 @@ module Parfait
|
||||
|
||||
class TypedMethod < Object
|
||||
|
||||
def self.attributes
|
||||
[:name , :source , :instructions , :binary ,:arguments , :for_type, :locals ]
|
||||
end
|
||||
|
||||
attr_reader :name , :instructions , :for_type ,:arguments , :locals , :binary
|
||||
|
||||
# not part of the parfait model, hence ruby accessor
|
||||
@ -40,7 +36,7 @@ module Parfait
|
||||
@name = name
|
||||
@binary = BinaryCode.new 0
|
||||
@arguments = arguments
|
||||
@locals = Parfait.object_space.get_class_by_name( :NamedList ).instance_type
|
||||
@locals = Parfait.object_space.get_class_by_name( :NamedList ).instance_type
|
||||
end
|
||||
|
||||
def set_instructions(inst)
|
||||
|
@ -13,9 +13,6 @@ module Parfait
|
||||
# Object length is measured in non-type cells though
|
||||
|
||||
class Word < Object
|
||||
def self.attributes
|
||||
[:char_length]
|
||||
end
|
||||
attr_reader :char_length
|
||||
|
||||
#semi "indexed" methods for interpreter
|
||||
|
Loading…
x
Reference in New Issue
Block a user