Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed unused import statements #90

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@


import android.support.test.rule.ActivityTestRule;

import static android.support.test.espresso.Espresso.onView;

import static android.support.test.espresso.action.ViewActions.click;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.matcher.ViewMatchers.withId;
import static android.support.test.espresso.matcher.ViewMatchers.withText;

import android.support.test.runner.AndroidJUnit4;


import android.view.WindowManager;

import in.tosc.digitaloceanapp.R;
Expand All @@ -22,6 +12,12 @@
import org.junit.Test;
import org.junit.runner.RunWith;

import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.action.ViewActions.click;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.matcher.ViewMatchers.withId;
import static android.support.test.espresso.matcher.ViewMatchers.withText;


/**
* Created by championswimmer on 15/07/17.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,10 @@
import android.support.test.espresso.contrib.NavigationViewActions;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;


import static android.support.test.espresso.Espresso.onView;

import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.contrib.DrawerMatchers.isClosed;
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
import static android.support.test.espresso.matcher.ViewMatchers.withId;

import android.view.Gravity;
import android.view.WindowManager;

import static in.tosc.digitaloceanapp.matchers.RecyclerViewMatcher.withRecyclerView;
import in.tosc.digitaloceanapp.R;

import static junit.framework.Assert.assertNotNull;

import org.junit.After;
Expand All @@ -27,6 +16,14 @@
import org.junit.Test;
import org.junit.runner.RunWith;

import in.tosc.digitaloceanapp.R;

import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.contrib.DrawerMatchers.isClosed;
import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
import static android.support.test.espresso.matcher.ViewMatchers.withId;




Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import static android.support.test.espresso.matcher.ViewMatchers.withId;

import android.support.test.rule.ActivityTestRule;

import android.view.WindowManager;

import in.tosc.digitaloceanapp.R;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package in.tosc.doandroidlib.exceptions;

import java.io.IOException;

/**
* Created by championswimmer on 15/07/17.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package in.tosc.doandroidlib.mockapi;

import java.util.HashMap;
import java.util.Map;

/**
* Created by championswimmer on 15/07/17.
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -16,8 +13,6 @@
import okhttp3.Response;
import okhttp3.ResponseBody;

import static android.R.attr.path;

/**
* Created by championswimmer on 15/07/17.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
/**
* Created by championswimmer on 14/07/17.
*/
import com.google.gson.annotations.SerializedName;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down