lib/standard/string: Removed flatten method on String, was never used
authorLucas Bajolet <r4pass@hotmail.com>
Wed, 27 May 2015 18:02:19 +0000 (14:02 -0400)
committerLucas Bajolet <r4pass@hotmail.com>
Mon, 1 Jun 2015 15:50:42 +0000 (11:50 -0400)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

lib/standard/string.nit

index 7fe5de3..f8dea5f 100644 (file)
@@ -127,7 +127,7 @@ abstract class Text
        end
 
        # Return a null terminated char *
-       fun to_cstring: NativeString do return flatten.to_cstring
+       fun to_cstring: NativeString is abstract
 
        # The index of the last occurrence of an element starting from pos (in reverse order).
        #
@@ -838,9 +838,6 @@ abstract class Text
                return escape_more_to_c("|\{\}<>")
        end
 
-       # Flat representation of self
-       fun flatten: FlatText is abstract
-
        private var hash_cache: nullable Int = null
 
        redef fun hash
@@ -956,8 +953,6 @@ abstract class FlatText
                end
        end
 
-       redef fun flatten do return self
-
        redef fun copy_to_native(dest, n, src_offset, dest_offset) do
                items.copy_to(dest, n, src_offset, dest_offset)
        end