From 6e63f5cd054a9f8b32027589ee08651c7e518a00 Mon Sep 17 00:00:00 2001 From: Tim Schneeberger Date: Thu, 23 Mar 2023 19:50:13 +0100 Subject: [PATCH] refactor: remove unused imports --- .../rootlessjamesdsp/activity/SettingsActivity.kt | 1 - .../rootlessjamesdsp/fragment/PreferenceGroupFragment.kt | 1 - .../fragment/settings/SettingsTroubleshootingFragment.kt | 6 ------ .../rootlessjamesdsp/interop/JamesDspBaseEngine.kt | 4 +--- .../timschneeberger/rootlessjamesdsp/liveprog/EelParser.kt | 2 -- .../flavor/updates/api/UpdateCheckService.kt | 1 - 6 files changed, 1 insertion(+), 14 deletions(-) diff --git a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/activity/SettingsActivity.kt b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/activity/SettingsActivity.kt index 07bfed09d..ba7944a66 100644 --- a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/activity/SettingsActivity.kt +++ b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/activity/SettingsActivity.kt @@ -5,7 +5,6 @@ import android.net.Uri import android.os.Bundle import androidx.activity.result.ActivityResultLauncher import androidx.activity.result.contract.ActivityResultContracts -import androidx.fragment.app.FragmentTransaction import androidx.preference.Preference import androidx.preference.PreferenceFragmentCompat import me.timschneeberger.rootlessjamesdsp.R diff --git a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/PreferenceGroupFragment.kt b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/PreferenceGroupFragment.kt index efe307f9d..16c96e687 100644 --- a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/PreferenceGroupFragment.kt +++ b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/PreferenceGroupFragment.kt @@ -8,7 +8,6 @@ import androidx.annotation.XmlRes import androidx.preference.* import androidx.preference.Preference.SummaryProvider import androidx.recyclerview.widget.RecyclerView -import com.google.android.material.transition.MaterialFade import me.timschneeberger.rootlessjamesdsp.R import me.timschneeberger.rootlessjamesdsp.activity.GraphicEqualizerActivity import me.timschneeberger.rootlessjamesdsp.activity.LiveprogEditorActivity diff --git a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/settings/SettingsTroubleshootingFragment.kt b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/settings/SettingsTroubleshootingFragment.kt index 9e210f456..c99b28b7f 100644 --- a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/settings/SettingsTroubleshootingFragment.kt +++ b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/fragment/settings/SettingsTroubleshootingFragment.kt @@ -6,15 +6,9 @@ import android.os.Build import android.os.Bundle import android.provider.Settings import android.text.InputType -import android.util.TypedValue -import android.view.LayoutInflater -import android.view.View -import android.view.ViewGroup import androidx.core.content.FileProvider -import androidx.core.content.res.ResourcesCompat import androidx.preference.EditTextPreference import androidx.preference.Preference -import androidx.preference.PreferenceFragmentCompat import me.timschneeberger.rootlessjamesdsp.BuildConfig import me.timschneeberger.rootlessjamesdsp.R import me.timschneeberger.rootlessjamesdsp.preference.MaterialSwitchPreference diff --git a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/interop/JamesDspBaseEngine.kt b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/interop/JamesDspBaseEngine.kt index f95af30b0..e11a7790d 100644 --- a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/interop/JamesDspBaseEngine.kt +++ b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/interop/JamesDspBaseEngine.kt @@ -9,17 +9,15 @@ import kotlinx.coroutines.launch import kotlinx.coroutines.sync.Mutex import kotlinx.coroutines.sync.withLock import me.timschneeberger.rootlessjamesdsp.R -import me.timschneeberger.rootlessjamesdsp.utils.Constants import me.timschneeberger.rootlessjamesdsp.interop.structure.EelVmVariable import me.timschneeberger.rootlessjamesdsp.model.ProcessorMessage import me.timschneeberger.rootlessjamesdsp.preference.FileLibraryPreference +import me.timschneeberger.rootlessjamesdsp.utils.Constants import me.timschneeberger.rootlessjamesdsp.utils.extensions.ContextExtensions.sendLocalBroadcast import timber.log.Timber import java.io.File import java.io.FileNotFoundException import java.io.FileReader -import java.io.IOException -import java.lang.NumberFormatException abstract class JamesDspBaseEngine(val context: Context, val callbacks: JamesDspWrapper.JamesDspCallbacks? = null) : AutoCloseable { abstract var enabled: Boolean diff --git a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/liveprog/EelParser.kt b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/liveprog/EelParser.kt index 010a0be13..d033bef25 100644 --- a/app/src/main/java/me/timschneeberger/rootlessjamesdsp/liveprog/EelParser.kt +++ b/app/src/main/java/me/timschneeberger/rootlessjamesdsp/liveprog/EelParser.kt @@ -4,8 +4,6 @@ import me.timschneeberger.rootlessjamesdsp.utils.extensions.md5 import timber.log.Timber import java.io.File import java.io.FileNotFoundException -import java.util.* -import kotlin.collections.ArrayList class EelParser { var isFileLoaded: Boolean diff --git a/app/src/root/java/me/timschneeberger/rootlessjamesdsp/flavor/updates/api/UpdateCheckService.kt b/app/src/root/java/me/timschneeberger/rootlessjamesdsp/flavor/updates/api/UpdateCheckService.kt index b7672ffb9..8f0f8a34b 100644 --- a/app/src/root/java/me/timschneeberger/rootlessjamesdsp/flavor/updates/api/UpdateCheckService.kt +++ b/app/src/root/java/me/timschneeberger/rootlessjamesdsp/flavor/updates/api/UpdateCheckService.kt @@ -1,7 +1,6 @@ package me.timschneeberger.rootlessjamesdsp.flavor.updates.api import me.timschneeberger.rootlessjamesdsp.flavor.updates.model.UpdateCheckResponse -import me.timschneeberger.rootlessjamesdsp.model.api.AeqSearchResult import okhttp3.ResponseBody import retrofit2.Call import retrofit2.http.GET