benitlux: drop the custom ellipsizing
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 23 Sep 2016 02:27:14 +0000 (22:27 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 2 Jan 2017 18:38:35 +0000 (13:38 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/benitlux/src/client/ios.nit

index f8d99a2..44aea28 100644 (file)
@@ -117,30 +117,3 @@ redef class UIApplication
                }
        `}
 end
-
-# ---
-# Shorten labels
-
-redef class Label
-       # Ellipsize `text` so it fits within `max_length` characters
-       #
-       # FIXME Remove this when labels are correctly ellipsized on iOS.
-       redef fun text=(text)
-       do
-               if text == null then
-                       super
-                       return
-               end
-
-               var max_length = 50
-               if parent isa HorizontalLayout and parent.parent isa BeerView then
-                       # This is the name of a beer, remember its a hack
-                       max_length = 20
-               end
-
-               if text.length > max_length then
-                       text = text.substring(0, max_length - 3).to_s + "..."
-               end
-               super text
-       end
-end