Remove unnecessary SettingsRepository.clearData (#648)

This commit is contained in:
Brian Yencho
2024-01-17 15:28:06 -06:00
committed by Álison Fernandes
parent cd236f183f
commit 9ba02c67e0
4 changed files with 0 additions and 31 deletions

View File

@@ -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.

View File

@@ -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)) {