From 6c9bd7e476269dc0085d428f9030f105ee3c5fe9 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 22 Dec 2016 21:16:56 +0200 Subject: [PATCH] remove unused code also just came through opal --- lib/typed/tree/to_code.rb | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/typed/tree/to_code.rb b/lib/typed/tree/to_code.rb index 5ece60fb..791d2fab 100644 --- a/lib/typed/tree/to_code.rb +++ b/lib/typed/tree/to_code.rb @@ -11,15 +11,6 @@ module Typed raise "No handler on_#{node.type}(node)" 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 params = {} statement.children.each do |param , type , name| @@ -131,7 +122,7 @@ module Typed def on_assignment statement name , value = *statement - w = Tree::Assignment.new() + w = Typed::Tree::Assignment.new() w.name = process name w.value = process(value) w