You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by nd...@apache.org on 2009/10/10 05:25:28 UTC
svn commit: r823774 -
/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/gl/font/FontMetricsImpl.java
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() {