nitdoc: remove useless class ConstructorsSection
authorAlexandre Terrasa <alexandre@moz-code.org>
Thu, 28 May 2015 15:06:56 +0000 (11:06 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Fri, 29 May 2015 23:05:56 +0000 (19:05 -0400)
This class was used to customize the generation of this particular section and limit the diff with the original nitdoc output.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/doc/console_templates/console_templates.nit
src/doc/doc_phases/doc_structure.nit
src/doc/html_templates/html_templates.nit

index 45bc33e..e94a388 100644 (file)
@@ -81,11 +81,6 @@ redef class ConcernSection
        end
 end
 
-redef class ConstructorsSection
-       redef var cs_title = "Constructors"
-       redef var cs_subtitle = null
-end
-
 redef class MEntityComposite
        redef var cs_title is lazy do return mentity.cs_name
        redef var cs_subtitle is lazy do return mentity.cs_namespace
index 65d9f59..20a5eef 100644 (file)
@@ -181,8 +181,7 @@ redef class MClassPage
                mentity.intro_mmodule.mgroup.mproject.booster_rank = 0
                mentity.intro_mmodule.mgroup.booster_rank = 0
                mentity.intro_mmodule.booster_rank = 0
-               var constructors = new ConstructorsSection(
-                       "{mentity.nitdoc_id}.constructors", mentity)
+               var constructors = new DocSection("{mentity.nitdoc_id}.constructors", "Constructors")
                var minit = mentity.root_init
                if minit != null then
                        constructors.add_child new DefinitionArticle("{minit.nitdoc_id}.definition", minit)
@@ -307,11 +306,6 @@ class MEntityComposite
        var mentity: MEntity
 end
 
-# A list of constructors.
-class ConstructorsSection
-       super MEntitySection
-end
-
 # A Section about a Concern.
 #
 # Those sections are used to build the page summary.
index e6dc436..9e495fb 100644 (file)
@@ -432,11 +432,6 @@ redef class MEntitySection
        redef var html_subtitle is lazy do return mentity.html_declaration
 end
 
-redef class ConstructorsSection
-       redef var html_title = "Constructors"
-       redef var html_subtitle = null
-end
-
 redef class ConcernSection
        redef var html_title is lazy do return "in {mentity.nitdoc_name}"
 end