harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r823774 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontMetricsImpl.java
Date Sat, 10 Oct 2009 03:25:28 GMT
Author: ndbeyer
Date: Sat Oct 10 03:25:28 2009
New Revision: 823774

URL: http://svn.apache.org/viewvc?rev=823774&view=rev
Log:
remove unused code an unnecessary suppression

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontMetricsImpl.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontMetricsImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontMetricsImpl.java?rev=823774&r1=823773&r2=823774&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontMetricsImpl.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontMetricsImpl.java
Sat Oct 10 03:25:28 2009
@@ -83,20 +83,6 @@
         this.maxAscent = ascent;
         this.maxDescent = descent;
         this.maxAdvance = lm.getLogicalMaxCharWidth();
-//        initWidths();
-    }
-
-    /**
-     * Initialize the array of the first 256 chars' advance widths
-     * of the Font describing this FontMetricsImpl object.
-     */
-    private void initWidths(){
-
-        this.widths = new int[256];
-        for (int chr=0; chr < 256; chr++){
-            widths[chr] = (int)(getFontPeer().charWidth((char)chr)*scaleX);
-        }
-
     }
 
     /**
@@ -179,7 +165,6 @@
      * Returns the maximum descent of the Font describing this 
      * FontMetricsImpl object.
      */
-    @SuppressWarnings("deprecation")
     @Deprecated
     @Override
     public int getMaxDecent() {



Mime
View raw message