contrib/nitiwiki: fix `useless signature in redef` warnings
authorAlexandre Terrasa <alexandre@moz-code.org>
Wed, 1 Jun 2016 14:19:20 +0000 (10:19 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Wed, 1 Jun 2016 14:19:20 +0000 (10:19 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

contrib/nitiwiki/src/wiki_base.nit
contrib/nitiwiki/src/wiki_html.nit

index 70cf35f..89964b1 100644 (file)
@@ -534,7 +534,7 @@ class WikiArticle
        # Articles can only have `WikiSection` as parents.
        redef type PARENT: WikiSection
 
-       redef fun title: String do
+       redef fun title do
                if name == "index" and parent != null then return parent.title
                return super
        end
@@ -551,7 +551,7 @@ class WikiArticle
                content = md
        end
 
-       redef var src_full_path: nullable String = null
+       redef var src_full_path = null
 
        redef fun src_path do
                var src_full_path = self.src_full_path
index ab79f09..fb918bc 100644 (file)
@@ -70,7 +70,7 @@ end
 redef class WikiSection
 
        # Output directory (where to ouput the HTML pages for this section).
-       redef fun out_path: String do
+       redef fun out_path do
                if parent == null then
                        return wiki.config.out_dir
                else
@@ -167,7 +167,7 @@ end
 
 redef class WikiArticle
 
-       redef fun out_path: String do
+       redef fun out_path do
                if parent == null then
                        return wiki.expand_path(wiki.config.out_dir, "{name}.html")
                else