lib/core: remove ascii method on Int and 'b' prefix
[nit.git] / lib / core / fixed_ints.nit
index ce79f53..521c02b 100644 (file)
@@ -158,9 +158,6 @@ universal Int8
        redef fun to_i32 is intern
        redef fun to_u32 is intern
 
-       # Returns `self` as a Char according to its ASCII value.
-       fun ascii: Char `{ return (uint32_t)self; `}
-
        redef fun distance(i) do return (self - i).to_i
 
        redef fun <=>(other)
@@ -252,9 +249,6 @@ universal Int16
        redef fun *(i) is intern
        redef fun /(i) is intern
 
-       # Returns `self` as a Char according to its ASCII value.
-       fun ascii: Char `{ return (uint32_t)self; `}
-
        # Modulo of `self` with `i`.
        #
        # Returns the remainder of division of `self` by `i`.
@@ -387,9 +381,6 @@ universal UInt16
        redef fun zero do return 0.to_u16
        redef fun value_of(val) do return val.to_u16
 
-       # Returns `self` as a Char according to its ASCII value.
-       fun ascii: Char `{ return (uint32_t)self; `}
-
        # `i` bits shift to the left
        #
        #     assert 5u16 << 1    == 10u16
@@ -500,9 +491,6 @@ universal Int32
        redef fun *(i) is intern
        redef fun /(i) is intern
 
-       # Returns `self` as a Char according to its ASCII value.
-       fun ascii: Char `{ return (uint32_t)self; `}
-
        # Modulo of `self` with `i`.
        #
        # Returns the remainder of division of `self` by `i`.
@@ -624,9 +612,6 @@ universal UInt32
        redef fun *(i) is intern
        redef fun /(i) is intern
 
-       # Returns `self` as a Char according to its ASCII value.
-       fun ascii: Char `{ return (uint32_t)self; `}
-
        # Modulo of `self` with `i`.
        #
        # Returns the remainder of division of `self` by `i`.