Skip to content

Commit

Permalink
Merge pull request #834 from Corvus400/chore/delete_unnecessary_define
Browse files Browse the repository at this point in the history
🗑️ Removed unnecessary duplicate definitions.
  • Loading branch information
takahirom authored Aug 28, 2024
2 parents 009bdf7 + f4f4f8d commit 39c800f
Showing 1 changed file with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,25 +153,6 @@ public val dataModule: Module = module {
}
}

// TODO Duplicate processing?
// TODO If not necessary, remove it in another task.
single<ProfileCardDataStore> {
val dataStore = createDataStore(
coroutineScope = CoroutineScope(Dispatchers.Default + SupervisorJob()),
producePath = {
val documentDirectory: NSURL? = NSFileManager.defaultManager.URLForDirectory(
directory = NSDocumentDirectory,
inDomain = NSUserDomainMask,
appropriateForURL = null,
create = false,
error = null,
)
requireNotNull(documentDirectory).path + "/confsched2024.profilecard.preferences_pb"
},
)
DefaultProfileCardDataStore(dataStore)
}

single<SettingsDataStore> {
val dataStore = createDataStore(
coroutineScope = CoroutineScope(Dispatchers.Default + SupervisorJob()),
Expand Down

0 comments on commit 39c800f

Please sign in to comment.