mirror of
https://github.com/bitwarden/android.git
synced 2026-06-07 14:57:41 -05:00
Remove unnecessary SettingsRepository.clearData (#648)
This commit is contained in:
committed by
Álison Fernandes
parent
cd236f183f
commit
9ba02c67e0
@@ -52,11 +52,6 @@ interface SettingsRepository {
|
||||
*/
|
||||
val isUnlockWithPinEnabled: Boolean
|
||||
|
||||
/**
|
||||
* Clears all the settings data for the given user.
|
||||
*/
|
||||
fun clearData(userId: String)
|
||||
|
||||
/**
|
||||
* Sets default values for various settings for the given [userId] if necessary. This is
|
||||
* typically used when logging into a new account.
|
||||
|
||||
@@ -97,10 +97,6 @@ class SettingsRepositoryImpl(
|
||||
?.let { authDiskSource.getEncryptedPin(userId = it) != null }
|
||||
?: false
|
||||
|
||||
override fun clearData(userId: String) {
|
||||
settingsDiskSource.clearData(userId = userId)
|
||||
}
|
||||
|
||||
override fun setDefaultsIfNecessary(userId: String) {
|
||||
// Set Vault Settings defaults
|
||||
if (!isVaultTimeoutActionSet(userId = userId)) {
|
||||
|
||||
Reference in New Issue
Block a user