From 2743e73b36fca2540770d608d7e0827dc62bc389 Mon Sep 17 00:00:00 2001 From: Sergey Solovyev Date: Wed, 7 Jun 2017 21:37:12 +0200 Subject: [PATCH] Remove logging from PaintCache --- .../android/views/dragbutton/PaintCache.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/dragbutton/src/main/java/org/solovyev/android/views/dragbutton/PaintCache.java b/dragbutton/src/main/java/org/solovyev/android/views/dragbutton/PaintCache.java index f0b229be..2976ef57 100644 --- a/dragbutton/src/main/java/org/solovyev/android/views/dragbutton/PaintCache.java +++ b/dragbutton/src/main/java/org/solovyev/android/views/dragbutton/PaintCache.java @@ -143,17 +143,6 @@ class PaintCache { public Spec textSize(float textSize) { return new Spec(color, alpha, typeface, textSize, highContrast); } - - @Override - public String toString() { - return "Spec{" + - "color=" + color + - ", alpha=" + alpha + - ", typeface=" + System.identityHashCode(typeface) + - ", textSize=" + textSize + - ", highContrast=" + highContrast + - '}'; - } } private float shadowRadius; @@ -181,15 +170,12 @@ class PaintCache { if (entry == null) { entry = new Entry(spec, makePaint(context, spec)); map.put(spec, entry); - } else { - Log.d(TAG, "Reusing paint for spec: " + spec); } return entry; } @NonNull private Paint makePaint(@NonNull Context context, @NonNull Spec spec) { - Log.d(TAG, "Creating new paint for spec: " + spec); final Paint paint = new Paint(); paint.setAntiAlias(true); if (spec.highContrast) {