From: Jean Privat Date: Wed, 1 Oct 2014 17:40:00 +0000 (-0400) Subject: Merge: engines: no more `super_inits` method used in old-style automatic init X-Git-Tag: v0.6.9~2 X-Git-Url: http://nitlanguage.org?hp=-c Merge: engines: no more `super_inits` method used in old-style automatic init Unneeded old code... Pull-Request: #798 Reviewed-by: Lucas Bajolet --- 5d77ad22b63f7ba6c2a845608de7a4ec911b18f6 diff --combined src/rapid_type_analysis.nit index 46545f8,c94e20f..a6adfee --- a/src/rapid_type_analysis.nit +++ b/src/rapid_type_analysis.nit @@@ -31,7 -31,6 +31,7 @@@ private import ordered_tree # for live_ private import more_collections redef class ModelBuilder + # Performs a rapid-type-analysis on the program associated with `mainmodule`. fun do_rapid_type_analysis(mainmodule: MModule): RapidTypeAnalysis do var analysis = new RapidTypeAnalysis(self, mainmodule) @@@ -240,13 -239,6 +240,6 @@@ class RapidTypeAnalysi if mmeth.name == "init" then var nclassdef = self.modelbuilder.mclassdef2nclassdef[mmethoddef.mclassdef] assert mmethoddef == nclassdef.mfree_init - var super_inits = nclassdef.super_inits - if super_inits != null then - #assert args.length == 1 - for su in super_inits do - v.add_monomorphic_send(v.receiver, su) - end - end if mmethoddef.mproperty.is_root_init and not mmethoddef.is_intro then self.add_super_send(v.receiver, mmethoddef)