html_model: Remove new_msignature
authorFlorian Deljarry <deljarry.florian@gmail.com>
Wed, 6 Nov 2019 19:04:15 +0000 (14:04 -0500)
committerFlorian Deljarry <deljarry.florian@gmail.com>
Wed, 6 Nov 2019 19:04:15 +0000 (14:04 -0500)
Signed-off-by: Florian Deljarry <deljarry.florian@gmail.com>

src/doc/templates/html_model.nit
src/doc/templates/term_model.nit

index 1b86587..90cd190 100644 (file)
@@ -251,10 +251,6 @@ end
 
 redef class MMethodDef
        redef fun html_signature(short) do
-               var new_msignature = self.new_msignature
-               if mproperty.is_root_init and new_msignature != null then
-                       return new_msignature.html_signature(short)
-               end
                var msignature = self.msignature
                if msignature == null then return new Template
                return msignature.html_signature(short)
index 55351fb..b33ce7f 100644 (file)
@@ -199,9 +199,6 @@ end
 
 redef class MMethodDef
        redef fun cs_signature(no_color) do
-               if mproperty.is_root_init then
-                       return new_msignature.as(not null).cs_signature(no_color)
-               end
                return msignature.as(not null).cs_signature(no_color)
        end
 end