OSDN Git Service

Frameworks/base: Remove unused field
authorAndreas Gampe <agampe@google.com>
Fri, 26 Feb 2016 22:47:39 +0000 (14:47 -0800)
committerAndreas Gampe <agampe@google.com>
Fri, 26 Feb 2016 22:47:39 +0000 (14:47 -0800)
Remove an unused field in BoringLayout. This has also the positive
side effect of allowing static initialization in the boot image.

Bug: 27248115
Change-Id: I9d6beec5f5e045ef899e8979ece96e0239f82076

core/java/android/text/BoringLayout.java

index 0f65f80..bfe5c3f 100644 (file)
@@ -423,9 +423,6 @@ public class BoringLayout extends Layout implements TextUtils.EllipsizeCallback
     private float mMax;
     private int mEllipsizedWidth, mEllipsizedStart, mEllipsizedCount;
 
-    private static final TextPaint sTemp =
-                                new TextPaint();
-
     public static class Metrics extends Paint.FontMetricsInt {
         public int width;