From f2186912400e45373862b8151d0c82c5cf8b36e1 Mon Sep 17 00:00:00 2001 From: Christine Emrich Date: Mon, 16 Nov 2015 13:49:38 +0100 Subject: [PATCH] Removed unused imports. --- .../java/NewsReaderListActivityUiTests.java | 10 ---------- News-Android-App/src/androidTest/java/SyncTests.java | 4 ---- News-Android-App/src/androidTest/java/URLTests.java | 10 ---------- .../de/luhmer/owncloudnewsreader/NewFeedActivity.java | 2 -- .../luhmer/owncloudnewsreader/NewsDetailFragment.java | 9 --------- .../owncloudnewsreader/NewsReaderApplication.java | 1 - .../owncloudnewsreader/NewsReaderDetailFragment.java | 1 - .../owncloudnewsreader/NewsReaderListFragment.java | 1 - .../de/luhmer/owncloudnewsreader/PodcastFragment.java | 1 - .../adapter/NewsListRecyclerAdapter.java | 1 - .../luhmer/owncloudnewsreader/adapter/ViewHolder.java | 2 -- .../owncloudnewsreader/helper/AsyncTaskHelper.java | 3 --- .../luhmer/owncloudnewsreader/reader/owncloud/API.java | 1 - .../reader/owncloud/OwnCloud_Reader.java | 2 -- .../services/SyncItemStateService.java | 6 ------ 15 files changed, 54 deletions(-) diff --git a/News-Android-App/src/androidTest/java/NewsReaderListActivityUiTests.java b/News-Android-App/src/androidTest/java/NewsReaderListActivityUiTests.java index 4e137966..988ead58 100644 --- a/News-Android-App/src/androidTest/java/NewsReaderListActivityUiTests.java +++ b/News-Android-App/src/androidTest/java/NewsReaderListActivityUiTests.java @@ -3,8 +3,6 @@ import android.os.SystemClock; import android.preference.PreferenceManager; import android.support.test.InstrumentationRegistry; import android.support.test.espresso.Espresso; -import android.support.test.espresso.ViewAssertion; -import android.support.test.espresso.ViewInteraction; import android.support.test.espresso.contrib.RecyclerViewActions; import android.support.test.espresso.matcher.ViewMatchers; import android.support.v4.app.Fragment; @@ -22,22 +20,14 @@ import de.luhmer.owncloudnewsreader.NewsReaderListActivity; import de.luhmer.owncloudnewsreader.R; import de.luhmer.owncloudnewsreader.adapter.NewsListRecyclerAdapter; import de.luhmer.owncloudnewsreader.adapter.ViewHolder; -import de.luhmer.owncloudnewsreader.database.model.RssItem; -import static android.support.test.espresso.Espresso.onData; import static android.support.test.espresso.Espresso.onView; import static android.support.test.espresso.action.ViewActions.click; -import static android.support.test.espresso.action.ViewActions.scrollTo; -import static android.support.test.espresso.assertion.ViewAssertions.doesNotExist; import static android.support.test.espresso.assertion.ViewAssertions.matches; import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed; import static android.support.test.espresso.matcher.ViewMatchers.isRoot; import static android.support.test.espresso.matcher.ViewMatchers.withEffectiveVisibility; import static android.support.test.espresso.matcher.ViewMatchers.withId; -import static org.hamcrest.Matchers.allOf; -import static org.hamcrest.Matchers.anything; -import static org.hamcrest.Matchers.instanceOf; -import static org.hamcrest.Matchers.is; public class NewsReaderListActivityUiTests extends ActivityInstrumentationTestCase2 { diff --git a/News-Android-App/src/androidTest/java/SyncTests.java b/News-Android-App/src/androidTest/java/SyncTests.java index cd6c3daf..0b864e13 100644 --- a/News-Android-App/src/androidTest/java/SyncTests.java +++ b/News-Android-App/src/androidTest/java/SyncTests.java @@ -1,5 +1,4 @@ import android.support.test.InstrumentationRegistry; -import android.support.test.rule.ActivityTestRule; import android.support.test.runner.AndroidJUnit4; import android.test.ActivityInstrumentationTestCase2; import android.test.suitebuilder.annotation.LargeTest; @@ -12,12 +11,9 @@ import com.squareup.okhttp.mockwebserver.MockWebServer; import org.junit.After; import org.junit.Before; -import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import java.net.URL; - import de.luhmer.owncloudnewsreader.NewsReaderListActivity; import de.luhmer.owncloudnewsreader.reader.FeedItemTags; import de.luhmer.owncloudnewsreader.reader.HttpJsonRequest; diff --git a/News-Android-App/src/androidTest/java/URLTests.java b/News-Android-App/src/androidTest/java/URLTests.java index f402be3a..be1077ff 100644 --- a/News-Android-App/src/androidTest/java/URLTests.java +++ b/News-Android-App/src/androidTest/java/URLTests.java @@ -1,23 +1,15 @@ import android.content.Context; import android.support.test.InstrumentationRegistry; -import android.support.test.rule.ActivityTestRule; import android.support.test.runner.AndroidJUnit4; import android.test.ActivityInstrumentationTestCase2; import android.test.suitebuilder.annotation.LargeTest; -import com.google.gson.JsonArray; -import com.google.gson.JsonObject; import com.squareup.okhttp.HttpUrl; -import com.squareup.okhttp.mockwebserver.MockResponse; -import com.squareup.okhttp.mockwebserver.MockWebServer; -import org.junit.After; import org.junit.Before; -import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; -import java.net.URL; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -26,8 +18,6 @@ import de.luhmer.owncloudnewsreader.NewsReaderListActivity; import de.luhmer.owncloudnewsreader.reader.FeedItemTags; import de.luhmer.owncloudnewsreader.reader.HttpJsonRequest; import de.luhmer.owncloudnewsreader.reader.owncloud.API; -import de.luhmer.owncloudnewsreader.reader.owncloud.OwnCloudReaderMethods; -import de.luhmer.owncloudnewsreader.reader.owncloud.apiv2.APIv2; /** * Created by david on 26.09.15. diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewFeedActivity.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewFeedActivity.java index 3dc87faf..c3e4f72b 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewFeedActivity.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewFeedActivity.java @@ -4,10 +4,8 @@ import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.content.Context; import android.content.Intent; -import android.content.SharedPreferences; import android.os.AsyncTask; import android.os.Bundle; -import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.text.TextUtils; diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailFragment.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailFragment.java index 44fa56a3..42bd5790 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailFragment.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsDetailFragment.java @@ -23,18 +23,11 @@ package de.luhmer.owncloudnewsreader; import android.annotation.SuppressLint; import android.annotation.TargetApi; -import android.app.DownloadManager; -import android.content.BroadcastReceiver; import android.content.Context; -import android.content.Intent; -import android.content.IntentFilter; -import android.database.Cursor; import android.graphics.Bitmap; -import android.net.Uri; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; -import android.os.Environment; import android.support.v4.app.DialogFragment; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentTransaction; @@ -42,7 +35,6 @@ import android.text.format.DateUtils; import android.util.Log; import android.view.ContextMenu; import android.view.LayoutInflater; -import android.view.MenuInflater; import android.view.MenuItem; import android.view.MotionEvent; import android.view.View; @@ -53,7 +45,6 @@ import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.ProgressBar; -import android.widget.Toast; import com.nostra13.universalimageloader.cache.disc.DiskCache; import com.nostra13.universalimageloader.core.ImageLoader; diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderApplication.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderApplication.java index e8b2dd54..17262dee 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderApplication.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderApplication.java @@ -11,7 +11,6 @@ import com.nostra13.universalimageloader.core.ImageLoaderConfiguration; import de.luhmer.owncloudnewsreader.reader.HttpJsonRequest; import de.luhmer.owncloudnewsreader.reader.OkHttpImageDownloader; -import de.luhmer.owncloudnewsreader.reader.owncloud.OwnCloud_Reader; /** * Created by daniel on 12.07.15. diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderDetailFragment.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderDetailFragment.java index fca26c15..7ad282a2 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderDetailFragment.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderDetailFragment.java @@ -21,7 +21,6 @@ package de.luhmer.owncloudnewsreader; -import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.content.res.TypedArray; diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListFragment.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListFragment.java index 279c4953..608421a9 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListFragment.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/NewsReaderListFragment.java @@ -21,7 +21,6 @@ package de.luhmer.owncloudnewsreader; -import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/PodcastFragment.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/PodcastFragment.java index 8ddca129..d3db2565 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/PodcastFragment.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/PodcastFragment.java @@ -1,6 +1,5 @@ package de.luhmer.owncloudnewsreader; -import android.app.Activity; import android.content.Context; import android.net.Uri; import android.os.Bundle; diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/NewsListRecyclerAdapter.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/NewsListRecyclerAdapter.java index fec5654c..5392a9d7 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/NewsListRecyclerAdapter.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/NewsListRecyclerAdapter.java @@ -1,6 +1,5 @@ package de.luhmer.owncloudnewsreader.adapter; -import android.content.DialogInterface; import android.content.SharedPreferences; import android.os.AsyncTask; import android.preference.PreferenceManager; diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/ViewHolder.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/ViewHolder.java index 5c8e42a4..efa2c102 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/ViewHolder.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/adapter/ViewHolder.java @@ -14,7 +14,6 @@ import android.text.format.DateUtils; import android.text.style.ForegroundColorSpan; import android.util.Log; import android.util.SparseArray; -import android.util.TypedValue; import android.view.View; import android.webkit.WebView; import android.widget.ImageView; @@ -31,7 +30,6 @@ import de.luhmer.owncloudnewsreader.SettingsActivity; import de.luhmer.owncloudnewsreader.database.model.RssItem; import de.luhmer.owncloudnewsreader.helper.ColorHelper; import de.luhmer.owncloudnewsreader.helper.FavIconHandler; -import de.luhmer.owncloudnewsreader.helper.ThemeChooser; import de.luhmer.owncloudnewsreader.services.PodcastDownloadService; /** diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/helper/AsyncTaskHelper.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/helper/AsyncTaskHelper.java index 8a54c7be..baa63bf0 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/helper/AsyncTaskHelper.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/helper/AsyncTaskHelper.java @@ -3,9 +3,6 @@ package de.luhmer.owncloudnewsreader.helper; import android.os.AsyncTask; import android.os.Build; -import java.util.concurrent.Executor; -import java.util.concurrent.ExecutorService; - /** * Created by David on 20.07.2015. */ diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/reader/owncloud/API.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/reader/owncloud/API.java index 213f0dbf..5a07a982 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/reader/owncloud/API.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/reader/owncloud/API.java @@ -30,7 +30,6 @@ import org.apache.commons.lang3.StringUtils; import java.util.List; import de.luhmer.owncloudnewsreader.reader.FeedItemTags; -import de.luhmer.owncloudnewsreader.reader.HttpJsonRequest; import de.luhmer.owncloudnewsreader.reader.owncloud.apiv1.APIv1; import de.luhmer.owncloudnewsreader.reader.owncloud.apiv2.APIv2; diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/reader/owncloud/OwnCloud_Reader.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/reader/owncloud/OwnCloud_Reader.java index 30131554..bb331653 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/reader/owncloud/OwnCloud_Reader.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/reader/owncloud/OwnCloud_Reader.java @@ -24,13 +24,11 @@ package de.luhmer.owncloudnewsreader.reader.owncloud; import android.content.Context; import android.os.AsyncTask; import android.os.Build; -import android.util.Log; import com.squareup.okhttp.HttpUrl; import java.util.concurrent.Callable; import java.util.concurrent.CountDownLatch; -import java.util.concurrent.Executor; import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; diff --git a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/SyncItemStateService.java b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/SyncItemStateService.java index 909a7c34..c36b52a8 100644 --- a/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/SyncItemStateService.java +++ b/News-Android-App/src/main/java/de/luhmer/owncloudnewsreader/services/SyncItemStateService.java @@ -26,13 +26,7 @@ import android.app.ActivityManager.RunningServiceInfo; import android.app.IntentService; import android.content.Context; import android.content.Intent; -import android.content.SharedPreferences; -import android.preference.PreferenceManager; -import de.luhmer.owncloudnewsreader.Constants; -import de.luhmer.owncloudnewsreader.SettingsActivity; -import de.luhmer.owncloudnewsreader.reader.OnAsyncTaskCompletedListener; -import de.luhmer.owncloudnewsreader.reader.owncloud.API; import de.luhmer.owncloudnewsreader.reader.owncloud.OwnCloud_Reader; public class SyncItemStateService extends IntentService {