From 4b3b01b9c260429a4f288f44090c2642ec825544 Mon Sep 17 00:00:00 2001 From: venomousboxer Date: Mon, 4 Jun 2018 20:04:15 +0530 Subject: [PATCH] Removing unused import statements --- .../java/in/tosc/digitaloceanapp/DOAppTest.java | 3 --- .../tosc/digitaloceanapp/activities/AboutActivity.java | 4 +--- .../activities/DetailDropletActivity.java | 5 ----- .../in/tosc/digitaloceanapp/utils/FontsOverride.java | 7 ++----- .../src/main/java/in/tosc/doandroidlib/DigitalOcean.java | 1 - .../in/tosc/doandroidlib/api/DigitalOceanClient.java | 5 ----- .../doandroidlib/api/DigitalOceanStatisticsClient.java | 1 - .../exceptions/ClientInitializationException.java | 2 -- .../java/in/tosc/doandroidlib/mockapi/MockUtils.java | 5 ----- .../java/in/tosc/doandroidlib/objects/AccountInfo.java | 2 -- .../test/java/in/tosc/doandroidlib/DigitalOceanTest.java | 9 ++------- 11 files changed, 5 insertions(+), 39 deletions(-) diff --git a/app/src/androidTest/java/in/tosc/digitaloceanapp/DOAppTest.java b/app/src/androidTest/java/in/tosc/digitaloceanapp/DOAppTest.java index 940b426..43bd572 100644 --- a/app/src/androidTest/java/in/tosc/digitaloceanapp/DOAppTest.java +++ b/app/src/androidTest/java/in/tosc/digitaloceanapp/DOAppTest.java @@ -3,9 +3,6 @@ import android.app.Instrumentation; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; -import android.support.test.runner.lifecycle.ApplicationLifecycleCallback; -import android.support.test.runner.lifecycle.ApplicationLifecycleMonitor; - import org.junit.Before; import org.junit.Test; diff --git a/app/src/main/java/in/tosc/digitaloceanapp/activities/AboutActivity.java b/app/src/main/java/in/tosc/digitaloceanapp/activities/AboutActivity.java index 1bbd518..5e08210 100644 --- a/app/src/main/java/in/tosc/digitaloceanapp/activities/AboutActivity.java +++ b/app/src/main/java/in/tosc/digitaloceanapp/activities/AboutActivity.java @@ -2,12 +2,10 @@ import android.content.Intent; import android.net.Uri; +import android.os.Bundle; import android.support.design.widget.AppBarLayout; -import android.support.design.widget.CoordinatorLayout; import android.support.v7.app.AppCompatActivity; -import android.os.Bundle; import android.support.v7.widget.Toolbar; -import android.view.MenuItem; import android.view.View; import in.tosc.digitaloceanapp.R; diff --git a/app/src/main/java/in/tosc/digitaloceanapp/activities/DetailDropletActivity.java b/app/src/main/java/in/tosc/digitaloceanapp/activities/DetailDropletActivity.java index cec7d71..352b7da 100644 --- a/app/src/main/java/in/tosc/digitaloceanapp/activities/DetailDropletActivity.java +++ b/app/src/main/java/in/tosc/digitaloceanapp/activities/DetailDropletActivity.java @@ -1,9 +1,7 @@ package in.tosc.digitaloceanapp.activities; import android.os.Bundle; -import android.os.Handler; import android.support.annotation.NonNull; -import android.support.design.internal.SnackbarContentLayout; import android.support.design.widget.CoordinatorLayout; import android.support.design.widget.Snackbar; import android.support.v7.app.AppCompatActivity; @@ -25,9 +23,6 @@ import in.tosc.digitaloceanapp.R; import in.tosc.digitaloceanapp.adapters.DropletsAdapter; - - - import in.tosc.digitaloceanapp.interfaces.OnDropletNameChange; import in.tosc.doandroidlib.DigitalOcean; import in.tosc.doandroidlib.api.DigitalOceanClient; diff --git a/app/src/main/java/in/tosc/digitaloceanapp/utils/FontsOverride.java b/app/src/main/java/in/tosc/digitaloceanapp/utils/FontsOverride.java index 81ce2b0..b7c4bcc 100644 --- a/app/src/main/java/in/tosc/digitaloceanapp/utils/FontsOverride.java +++ b/app/src/main/java/in/tosc/digitaloceanapp/utils/FontsOverride.java @@ -3,22 +3,19 @@ /** * Created by championswimmer on 26/11/16. */ -import java.lang.reflect.Field; - import android.app.ActionBar; import android.app.Activity; import android.content.Context; import android.graphics.Paint; import android.graphics.Typeface; import android.support.v4.util.LruCache; -import android.support.v7.widget.Toolbar; import android.text.Spannable; import android.text.SpannableString; import android.text.TextPaint; import android.text.style.MetricAffectingSpan; import android.util.Log; -import android.view.View; -import android.widget.TextView; + +import java.lang.reflect.Field; public final class FontsOverride { diff --git a/doandroidlib/src/main/java/in/tosc/doandroidlib/DigitalOcean.java b/doandroidlib/src/main/java/in/tosc/doandroidlib/DigitalOcean.java index e85bcb6..16895f0 100644 --- a/doandroidlib/src/main/java/in/tosc/doandroidlib/DigitalOcean.java +++ b/doandroidlib/src/main/java/in/tosc/doandroidlib/DigitalOcean.java @@ -4,7 +4,6 @@ import android.content.Intent; import android.os.Bundle; import android.support.annotation.NonNull; -import android.support.annotation.Nullable; import java.io.IOException; diff --git a/doandroidlib/src/main/java/in/tosc/doandroidlib/api/DigitalOceanClient.java b/doandroidlib/src/main/java/in/tosc/doandroidlib/api/DigitalOceanClient.java index 9e7a01d..fa6a878 100644 --- a/doandroidlib/src/main/java/in/tosc/doandroidlib/api/DigitalOceanClient.java +++ b/doandroidlib/src/main/java/in/tosc/doandroidlib/api/DigitalOceanClient.java @@ -1,17 +1,12 @@ package in.tosc.doandroidlib.api; -import java.util.List; - import in.tosc.doandroidlib.common.ActionType; -import in.tosc.doandroidlib.objects.Account; import in.tosc.doandroidlib.objects.AccountInfo; import in.tosc.doandroidlib.objects.Action; import in.tosc.doandroidlib.objects.Droplet; import in.tosc.doandroidlib.objects.Droplets; -import in.tosc.doandroidlib.objects.Image; import in.tosc.doandroidlib.objects.Images; import in.tosc.doandroidlib.objects.Regions; -import in.tosc.doandroidlib.objects.Size; import in.tosc.doandroidlib.objects.Sizes; import retrofit2.Call; import retrofit2.http.Field; diff --git a/doandroidlib/src/main/java/in/tosc/doandroidlib/api/DigitalOceanStatisticsClient.java b/doandroidlib/src/main/java/in/tosc/doandroidlib/api/DigitalOceanStatisticsClient.java index f336138..fc213e0 100644 --- a/doandroidlib/src/main/java/in/tosc/doandroidlib/api/DigitalOceanStatisticsClient.java +++ b/doandroidlib/src/main/java/in/tosc/doandroidlib/api/DigitalOceanStatisticsClient.java @@ -4,7 +4,6 @@ import in.tosc.doandroidlib.common.StatisticsType; import in.tosc.doandroidlib.objects.Statistics; import retrofit2.Call; -import retrofit2.http.Field; import retrofit2.http.GET; import retrofit2.http.Path; import retrofit2.http.Query; diff --git a/doandroidlib/src/main/java/in/tosc/doandroidlib/exceptions/ClientInitializationException.java b/doandroidlib/src/main/java/in/tosc/doandroidlib/exceptions/ClientInitializationException.java index b4085db..edc32fc 100644 --- a/doandroidlib/src/main/java/in/tosc/doandroidlib/exceptions/ClientInitializationException.java +++ b/doandroidlib/src/main/java/in/tosc/doandroidlib/exceptions/ClientInitializationException.java @@ -1,7 +1,5 @@ package in.tosc.doandroidlib.exceptions; -import java.io.IOException; - /** * Created by championswimmer on 15/07/17. */ diff --git a/doandroidlib/src/main/java/in/tosc/doandroidlib/mockapi/MockUtils.java b/doandroidlib/src/main/java/in/tosc/doandroidlib/mockapi/MockUtils.java index 3cff536..3629d27 100644 --- a/doandroidlib/src/main/java/in/tosc/doandroidlib/mockapi/MockUtils.java +++ b/doandroidlib/src/main/java/in/tosc/doandroidlib/mockapi/MockUtils.java @@ -1,11 +1,8 @@ package in.tosc.doandroidlib.mockapi; -import android.text.TextUtils; - import org.apache.commons.lang3.StringUtils; import java.io.IOException; -import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -16,8 +13,6 @@ import okhttp3.Response; import okhttp3.ResponseBody; -import static android.R.attr.path; - /** * Created by championswimmer on 15/07/17. */ diff --git a/doandroidlib/src/main/java/in/tosc/doandroidlib/objects/AccountInfo.java b/doandroidlib/src/main/java/in/tosc/doandroidlib/objects/AccountInfo.java index 810e7fc..7bb39ff 100644 --- a/doandroidlib/src/main/java/in/tosc/doandroidlib/objects/AccountInfo.java +++ b/doandroidlib/src/main/java/in/tosc/doandroidlib/objects/AccountInfo.java @@ -3,8 +3,6 @@ /** * Created by championswimmer on 14/07/17. */ -import com.google.gson.annotations.SerializedName; - import org.apache.commons.lang3.builder.ReflectionToStringBuilder; /** diff --git a/doandroidlib/src/test/java/in/tosc/doandroidlib/DigitalOceanTest.java b/doandroidlib/src/test/java/in/tosc/doandroidlib/DigitalOceanTest.java index 1306608..ee7f122 100644 --- a/doandroidlib/src/test/java/in/tosc/doandroidlib/DigitalOceanTest.java +++ b/doandroidlib/src/test/java/in/tosc/doandroidlib/DigitalOceanTest.java @@ -3,17 +3,12 @@ import org.junit.Before; import org.junit.Test; -import static org.junit.Assert.*; - import java.io.IOException; -import java.util.ArrayList; -import java.util.List; import in.tosc.doandroidlib.api.DigitalOceanClient; -import in.tosc.doandroidlib.mockapi.MockResponses; -import in.tosc.doandroidlib.mockapi.MockUtils; import in.tosc.doandroidlib.objects.AccountInfo; -import okhttp3.Interceptor; + +import static org.junit.Assert.assertEquals; /** * Created by championswimmer on 15/07/17.