Remove unused variables
This commit is contained in:
parent
585b2b2955
commit
8de1732e1b
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user