From 07395892a0e681a153d903d08c5792d39be9b2d4 Mon Sep 17 00:00:00 2001 From: inorichi Date: Sat, 17 Oct 2015 04:06:30 +0200 Subject: [PATCH] Imports cleanup --- .../main/java/eu/kanade/mangafeed/AppComponent.java | 4 ++-- .../kanade/mangafeed/presenter/LibraryPresenter.java | 5 ----- .../java/eu/kanade/mangafeed/sources/MangaHere.java | 11 ----------- .../kanade/mangafeed/ui/activity/BaseActivity2.java | 1 - .../eu/kanade/mangafeed/ui/activity/MainActivity.java | 2 +- .../kanade/mangafeed/ui/fragment/LibraryFragment.java | 2 -- 6 files changed, 3 insertions(+), 22 deletions(-) diff --git a/app/src/main/java/eu/kanade/mangafeed/AppComponent.java b/app/src/main/java/eu/kanade/mangafeed/AppComponent.java index 204e41f52..ad081c7ce 100644 --- a/app/src/main/java/eu/kanade/mangafeed/AppComponent.java +++ b/app/src/main/java/eu/kanade/mangafeed/AppComponent.java @@ -7,10 +7,10 @@ import javax.inject.Singleton; import dagger.Component; import eu.kanade.mangafeed.data.DataModule; import eu.kanade.mangafeed.presenter.CataloguePresenter; -import eu.kanade.mangafeed.presenter.MangaCataloguePresenter; -import eu.kanade.mangafeed.presenter.SourcePresenter; import eu.kanade.mangafeed.presenter.LibraryPresenter; +import eu.kanade.mangafeed.presenter.MangaCataloguePresenter; import eu.kanade.mangafeed.presenter.MangaDetailPresenter; +import eu.kanade.mangafeed.presenter.SourcePresenter; @Singleton @Component( diff --git a/app/src/main/java/eu/kanade/mangafeed/presenter/LibraryPresenter.java b/app/src/main/java/eu/kanade/mangafeed/presenter/LibraryPresenter.java index 7534e263b..7f567b968 100644 --- a/app/src/main/java/eu/kanade/mangafeed/presenter/LibraryPresenter.java +++ b/app/src/main/java/eu/kanade/mangafeed/presenter/LibraryPresenter.java @@ -6,19 +6,14 @@ import android.util.SparseBooleanArray; import javax.inject.Inject; -import eu.kanade.mangafeed.App; import eu.kanade.mangafeed.data.helpers.DatabaseHelper; import eu.kanade.mangafeed.data.helpers.PreferencesHelper; import eu.kanade.mangafeed.data.models.Manga; import eu.kanade.mangafeed.ui.activity.MangaDetailActivity; -import eu.kanade.mangafeed.ui.adapter.LibraryAdapter; import eu.kanade.mangafeed.ui.fragment.LibraryFragment; -import eu.kanade.mangafeed.util.DummyDataUtil; -import eu.kanade.mangafeed.view.LibraryView; import rx.Observable; import rx.Subscription; import rx.android.schedulers.AndroidSchedulers; -import rx.internal.util.SubscriptionList; import rx.schedulers.Schedulers; import uk.co.ribot.easyadapter.EasyAdapter; diff --git a/app/src/main/java/eu/kanade/mangafeed/sources/MangaHere.java b/app/src/main/java/eu/kanade/mangafeed/sources/MangaHere.java index b0ae67473..6ca5f22a3 100644 --- a/app/src/main/java/eu/kanade/mangafeed/sources/MangaHere.java +++ b/app/src/main/java/eu/kanade/mangafeed/sources/MangaHere.java @@ -1,9 +1,5 @@ package eu.kanade.mangafeed.sources; -import android.database.sqlite.SQLiteDatabase; - -import com.squareup.okhttp.Response; - import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; @@ -13,11 +9,9 @@ import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; -import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Locale; -import java.util.concurrent.atomic.AtomicInteger; import eu.kanade.mangafeed.data.caches.CacheManager; import eu.kanade.mangafeed.data.helpers.NetworkHelper; @@ -25,11 +19,6 @@ import eu.kanade.mangafeed.data.helpers.SourceManager; import eu.kanade.mangafeed.data.models.Chapter; import eu.kanade.mangafeed.data.models.Manga; import rx.Observable; -import rx.functions.Action0; -import rx.functions.Action1; -import rx.functions.Func1; -import rx.functions.FuncN; -import rx.schedulers.Schedulers; public class MangaHere extends Source { diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/activity/BaseActivity2.java b/app/src/main/java/eu/kanade/mangafeed/ui/activity/BaseActivity2.java index 04ff16146..090254329 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/activity/BaseActivity2.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/activity/BaseActivity2.java @@ -5,7 +5,6 @@ import android.os.Bundle; import android.support.v7.widget.Toolbar; import eu.kanade.mangafeed.App; -import eu.kanade.mangafeed.AppComponent; import nucleus.factory.PresenterFactory; import nucleus.presenter.Presenter; import nucleus.view.NucleusAppCompatActivity; diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/activity/MainActivity.java b/app/src/main/java/eu/kanade/mangafeed/ui/activity/MainActivity.java index 90f0a7d00..c71f80d80 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/activity/MainActivity.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/activity/MainActivity.java @@ -13,8 +13,8 @@ import com.mikepenz.materialdrawer.model.PrimaryDrawerItem; import butterknife.Bind; import butterknife.ButterKnife; import eu.kanade.mangafeed.R; -import eu.kanade.mangafeed.ui.fragment.SourceFragment; import eu.kanade.mangafeed.ui.fragment.LibraryFragment; +import eu.kanade.mangafeed.ui.fragment.SourceFragment; public class MainActivity extends BaseActivity { diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/fragment/LibraryFragment.java b/app/src/main/java/eu/kanade/mangafeed/ui/fragment/LibraryFragment.java index 29e48cbfe..a63ed0905 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/fragment/LibraryFragment.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/fragment/LibraryFragment.java @@ -18,9 +18,7 @@ import eu.kanade.mangafeed.data.models.Manga; import eu.kanade.mangafeed.presenter.LibraryPresenter; import eu.kanade.mangafeed.ui.activity.MainActivity; import eu.kanade.mangafeed.ui.adapter.LibraryAdapter; -import eu.kanade.mangafeed.view.LibraryView; import nucleus.factory.RequiresPresenter; -import uk.co.ribot.easyadapter.EasyAdapter; @RequiresPresenter(LibraryPresenter.class) public class LibraryFragment extends BaseFragment2 {