sax: Remove useless type declarations.
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Fri, 28 Nov 2014 17:20:59 +0000 (12:20 -0500)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Fri, 28 Nov 2014 17:38:32 +0000 (12:38 -0500)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

lib/sax/helpers/attributes_impl.nit
lib/sax/helpers/namespace_support.nit

index ce84faf..97f16d8 100644 (file)
@@ -30,7 +30,7 @@ import sax::attributes
 class AttributesImpl
        super Attributes
 
-       private var data: Array[String] = new Array[String]
+       private var data = new Array[String]
        redef var length: Int = 0
 
        redef fun uri(index: Int): nullable String do
index 35f13d8..0c146d2 100644 (file)
@@ -74,8 +74,8 @@ class NamespaceSupport
        # to the `xmlns` prefix.
        var nsdecl = "http://www.w3.org/xmlns/2000/"
 
-       private var contexts: Array[Context] = new Array[Context].with_capacity(32)
-       private var current_context: Context = new Context
+       private var contexts = new Array[Context].with_capacity(32)
+       private var current_context = new Context
        private var context_position: Int = 0
 
        init do