OSDN Git Service

Eleven: remove junit dependency
authorAlexander Martinz <amartinz@shiftphones.com>
Wed, 30 Jan 2019 21:13:39 +0000 (22:13 +0100)
committerAlexander Martinz <amartinz@shiftphones.com>
Thu, 31 Jan 2019 17:56:14 +0000 (18:56 +0100)
We are just pulling in junit for an runtime assertion call
within a method, which is even unused.

Remove junit call and dependency but leave the unused method there
which will be rm -rf'ed in followup changes.

Change-Id: Ib71ac78f3e0bbabcb5b4acdaa34e853e39b616aa
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
Android.mk
src/org/lineageos/eleven/widgets/LetterTileDrawable.java

index 5bf8419..a82c79b 100644 (file)
@@ -11,8 +11,7 @@ LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, res)
 LOCAL_STATIC_JAVA_LIBRARIES := \
     android-support-v8-renderscript \
     android-common \
-    guava \
-    junit
+    guava
 
 LOCAL_STATIC_ANDROID_LIBRARIES := \
     android-support-v4 \
index fdbc8bd..65fdc28 100644 (file)
@@ -30,8 +30,6 @@ import android.graphics.Typeface;
 import android.graphics.drawable.Drawable;
 import android.text.TextUtils;
 
-import junit.framework.Assert;
-
 import org.lineageos.eleven.R;
 import org.lineageos.eleven.cache.ImageWorker.ImageType;
 import org.lineageos.eleven.utils.BitmapWithColors;
@@ -278,7 +276,6 @@ public class LetterTileDrawable extends Drawable {
      * The default is 0.0f.
      */
     public void setOffset(float offset) {
-        Assert.assertTrue(offset >= -0.5f && offset <= 0.5f);
         mOffset = offset;
     }