Merge: engines: no more `super_inits` method used in old-style automatic init
authorJean Privat <jean@pryen.org>
Wed, 1 Oct 2014 17:40:00 +0000 (13:40 -0400)
committerJean Privat <jean@pryen.org>
Wed, 1 Oct 2014 17:40:00 +0000 (13:40 -0400)
Unneeded old code...

Pull-Request: #798
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

1  2 
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)