lib/symbol: fixes old style inits
authorAlexandre Terrasa <alexandre@moz-code.org>
Fri, 12 Dec 2014 20:11:55 +0000 (15:11 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 12 Jan 2015 08:18:19 +0000 (09:18 +0100)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

lib/symbol.nit

index 1e9fb67..b865017 100644 (file)
@@ -32,8 +32,5 @@ end
 # A symbol is a unique immutable string
 class Symbol
        private var string: String
-       redef fun to_s do return _string.to_s
-
-       # Only used by String::to_symbol
-       private init(s: String) do _string = s
+       redef fun to_s do return string.to_s
 end