Remove unused variables

This commit is contained in:
MM20 2024-08-11 22:13:05 +02:00
parent 585b2b2955
commit 8de1732e1b
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
2 changed files with 0 additions and 16 deletions

View File

@ -80,10 +80,6 @@ fun SearchColumn(
val privateApps by viewModel.privateSpaceAppResults
val profiles by viewModel.profiles.collectAsState(emptyList())
val profileStates by viewModel.profileStates.collectAsState(emptyList())
val workProfile by viewModel.workProfile.collectAsState(null)
val workProfileState by viewModel.workProfileState.collectAsState(null)
val privateProfile by viewModel.privateProfile.collectAsState(null)
val privateProfileState by viewModel.privateProfileState.collectAsState(null)
val appShortcuts by viewModel.appShortcutResults
val contacts by viewModel.contactResults

View File

@ -91,18 +91,6 @@ class SearchVM : ViewModel(), KoinComponent {
it.toList()
}
}
val workProfile = profiles.map {
it.find { it.type == Profile.Type.Work }
}
val privateProfile = profiles.map {
it.find { it.type == Profile.Type.Private }
}
val workProfileState = workProfile.flatMapLatest {
profileManager.getProfileState(it)
}
val privateProfileState = privateProfile.flatMapLatest {
profileManager.getProfileState(it)
}
val hasProfilesPermission = permissionsManager.hasPermission(PermissionGroup.ManageProfiles)