You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2013/09/26 17:36:47 UTC

svn commit: r1526580 - /pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java

Author: smartini
Date: Thu Sep 26 15:36:46 2013
New Revision: 1526580

URL: http://svn.apache.org/r1526580
Log:
PIVOT-910, small cleanup

Modified:
    pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java

Modified: pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java
URL: http://svn.apache.org/viewvc/pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java?rev=1526580&r1=1526579&r2=1526580&view=diff
==============================================================================
--- pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java (original)
+++ pivot/branches/2.0.x/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java Thu Sep 26 15:36:46 2013
@@ -182,14 +182,6 @@ public class LabelSkin extends Component
 
         FontRenderContext fontRenderContext = Platform.getFontRenderContext();
 
-//        int preferredWidth;
-//        if (text != null
-//            && text.length() > 0) {
-//            Rectangle2D stringBounds = font.getStringBounds(text, fontRenderContext);
-//            preferredWidth = (int)Math.ceil(stringBounds.getWidth());
-//        } else {
-//            preferredWidth = 0;
-
         LineMetrics lm = font.getLineMetrics("", fontRenderContext);
         int lineHeight = (int)Math.ceil(lm.getHeight());