Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
SanmerDev committed May 19, 2024
1 parent 2c40059 commit 15ca5ec
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ import androidx.datastore.core.DataStoreFactory
import androidx.datastore.dataStoreFile
import com.sanmer.geomag.datastore.UserPreferences
import com.sanmer.geomag.datastore.UserPreferencesSerializer
import com.sanmer.geomag.di.ApplicationScope
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.CoroutineScope
import javax.inject.Singleton

@Module
Expand All @@ -23,12 +21,10 @@ object DataStoreModule {
@Singleton
fun providesUserPreferencesDataStore(
@ApplicationContext context: Context,
userPreferencesSerializer: UserPreferencesSerializer,
@ApplicationScope applicationScope: CoroutineScope
userPreferencesSerializer: UserPreferencesSerializer
): DataStore<UserPreferences> =
DataStoreFactory.create(
serializer = userPreferencesSerializer,
scope = applicationScope,
serializer = userPreferencesSerializer
) {
context.dataStoreFile("user_preferences.pb")
}
Expand Down

This file was deleted.

23 changes: 0 additions & 23 deletions app/src/main/kotlin/com/sanmer/geomag/di/CoroutineQualifier.kt

This file was deleted.

29 changes: 0 additions & 29 deletions app/src/main/kotlin/com/sanmer/geomag/di/CoroutineScopeModule.kt

This file was deleted.

0 comments on commit 15ca5ec

Please sign in to comment.