remove unused code

also just came through opal
This commit is contained in:
Torsten Ruger 2016-12-22 21:16:56 +02:00
parent 3b888b203d
commit 6c9bd7e476

View File

@ -11,15 +11,6 @@ module Typed
raise "No handler on_#{node.type}(node)" raise "No handler on_#{node.type}(node)"
end end
def on_class statement
name , derives , statements = *statement
w = Tree::ClassStatement.new()
w.name = name
w.derives = derives.children.first
w.statements = process(statements)
w
end
def on_parameters statement def on_parameters statement
params = {} params = {}
statement.children.each do |param , type , name| statement.children.each do |param , type , name|
@ -131,7 +122,7 @@ module Typed
def on_assignment statement def on_assignment statement
name , value = *statement name , value = *statement
w = Tree::Assignment.new() w = Typed::Tree::Assignment.new()
w.name = process name w.name = process name
w.value = process(value) w.value = process(value)
w w