Skip to content

Commit

Permalink
Remove unused Json object from VaultRepository (#3653)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-livefront authored Jul 30, 2024
1 parent 6d22ee9 commit d5e0ebe
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ import kotlinx.coroutines.flow.onStart
import kotlinx.coroutines.flow.stateIn
import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
import kotlinx.serialization.json.Json
import retrofit2.HttpException
import java.time.Clock
import java.time.temporal.ChronoUnit
Expand Down Expand Up @@ -139,7 +138,6 @@ class VaultRepositoryImpl(
private val userLogoutManager: UserLogoutManager,
pushManager: PushManager,
private val clock: Clock,
private val json: Json,
dispatcherManager: DispatcherManager,
) : VaultRepository,
CipherManager by cipherManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.serialization.json.Json
import java.time.Clock
import javax.inject.Singleton

Expand Down Expand Up @@ -51,7 +50,6 @@ object VaultRepositoryModule {
pushManager: PushManager,
userLogoutManager: UserLogoutManager,
clock: Clock,
json: Json,
): VaultRepository = VaultRepositoryImpl(
syncService = syncService,
sendsService = sendsService,
Expand All @@ -69,6 +67,5 @@ object VaultRepositoryModule {
pushManager = pushManager,
userLogoutManager = userLogoutManager,
clock = clock,
json = json,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import com.x8bit.bitwarden.data.auth.manager.UserLogoutManager
import com.x8bit.bitwarden.data.auth.repository.util.toSdkParams
import com.x8bit.bitwarden.data.platform.base.FakeDispatcherManager
import com.x8bit.bitwarden.data.platform.datasource.disk.SettingsDiskSource
import com.x8bit.bitwarden.data.platform.datasource.network.di.PlatformNetworkModule
import com.x8bit.bitwarden.data.platform.manager.PushManager
import com.x8bit.bitwarden.data.platform.manager.dispatcher.DispatcherManager
import com.x8bit.bitwarden.data.platform.manager.model.SyncCipherDeleteData
Expand Down Expand Up @@ -117,7 +116,6 @@ import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.flow.update
import kotlinx.coroutines.test.runTest
import kotlinx.serialization.json.Json
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
Expand All @@ -140,7 +138,6 @@ class VaultRepositoryTest {
Instant.parse("2023-10-27T12:00:00Z"),
ZoneOffset.UTC,
)
private val json: Json = PlatformNetworkModule.providesJson()
private val dispatcherManager: DispatcherManager = FakeDispatcherManager()
private val userLogoutManager: UserLogoutManager = mockk {
every { logout(any(), any()) } just runs
Expand Down Expand Up @@ -226,7 +223,6 @@ class VaultRepositoryTest {
fileManager = fileManager,
clock = clock,
userLogoutManager = userLogoutManager,
json = json,
)

@BeforeEach
Expand Down

0 comments on commit d5e0ebe

Please sign in to comment.