Refactor: Removed unused code.

Signed-off-by: HeCodes2Much <wayne6324@gmail.com>
This commit is contained in:
HeCodes2Much
2024-07-07 22:28:45 +01:00
parent 6c7baa4c5a
commit 6034d34827

View File

@@ -3,8 +3,6 @@ package com.github.droidworksstudio.launcher
import android.app.Application import android.app.Application
import android.content.Context import android.content.Context
import android.graphics.Typeface import android.graphics.Typeface
import android.os.Build
import androidx.annotation.RequiresApi
import com.github.droidworksstudio.launcher.helper.PreferenceHelper import com.github.droidworksstudio.launcher.helper.PreferenceHelper
import dagger.hilt.android.HiltAndroidApp import dagger.hilt.android.HiltAndroidApp
import org.acra.ACRA import org.acra.ACRA
@@ -22,7 +20,6 @@ class Application : Application() {
@Inject @Inject
lateinit var preferenceHelper: PreferenceHelper lateinit var preferenceHelper: PreferenceHelper
@RequiresApi(Build.VERSION_CODES.O)
override fun onCreate() { override fun onCreate() {
super.onCreate() super.onCreate()
@@ -78,7 +75,6 @@ class Application : Application() {
} }
} }
@RequiresApi(Build.VERSION_CODES.O)
private fun setCustomFont(context: Context) { private fun setCustomFont(context: Context) {
// Load the custom font from resources // Load the custom font from resources
val customFont = preferenceHelper.launcherFont.getFont(context) val customFont = preferenceHelper.launcherFont.getFont(context)