remove unused attributes functions

This commit is contained in:
Torsten Ruger 2016-12-31 15:20:02 +02:00
parent 7bb1c361a5
commit 5f3744d6af
8 changed files with 3 additions and 30 deletions

View File

@ -16,9 +16,6 @@
module Parfait module Parfait
class Class < Object class Class < Object
include Behaviour 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 attr_reader :instance_type , :name , :instance_methods , :super_class_name

View File

@ -2,9 +2,6 @@
module Parfait module Parfait
class Dictionary < Object class Dictionary < Object
def self.attributes
[:keys, :values]
end
# only empty initialization for now # only empty initialization for now
# #

View File

@ -68,10 +68,6 @@ module Parfait
set_internal_word( 2 , len) set_internal_word( 2 , len)
end end
def self.attributes
[:indexed_length]
end
def indexed_length def indexed_length
get_length() get_length()
end end

View File

@ -9,10 +9,6 @@
module Parfait module Parfait
class Message < Object 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 attr_accessor :next_message

View File

@ -46,10 +46,6 @@ module Parfait
end end
end end
def self.attributes
[:classes , :types, :first_message]
end
attr_reader :classes , :first_message attr_reader :classes , :first_message
def each_type def each_type

View File

@ -34,9 +34,7 @@
module Parfait module Parfait
class Type < Object class Type < Object
def self.attributes
[:names , :types , :object_class , :methods ]
end
attr_reader :object_class , :names , :types , :methods attr_reader :object_class , :names , :types , :methods
def self.for_hash( object_class , hash) def self.for_hash( object_class , hash)

View File

@ -22,10 +22,6 @@ module Parfait
class TypedMethod < Object class TypedMethod < Object
def self.attributes
[:name , :source , :instructions , :binary ,:arguments , :for_type, :locals ]
end
attr_reader :name , :instructions , :for_type ,:arguments , :locals , :binary attr_reader :name , :instructions , :for_type ,:arguments , :locals , :binary
# not part of the parfait model, hence ruby accessor # not part of the parfait model, hence ruby accessor

View File

@ -13,9 +13,6 @@ module Parfait
# Object length is measured in non-type cells though # Object length is measured in non-type cells though
class Word < Object class Word < Object
def self.attributes
[:char_length]
end
attr_reader :char_length attr_reader :char_length
#semi "indexed" methods for interpreter #semi "indexed" methods for interpreter