Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unused code #2149

Merged
merged 5 commits into from
Oct 18, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -742,15 +742,6 @@ class UserSessionScope internal constructor(
globalPreferences,
)

@Deprecated("UseCases should be in their respective scopes", ReplaceWith("backup.create"))
val createBackup: CreateBackupUseCase get() = backup.create

@Deprecated("UseCases should be in their respective scopes", ReplaceWith("backup.verify"))
val verifyBackupUseCase: VerifyBackupUseCase get() = backup.verify

@Deprecated("UseCases should be in their respective scopes", ReplaceWith("backup.restore"))
val restoreBackup: RestoreBackupUseCase get() = backup.restore

val persistMessage: PersistMessageUseCase
get() = PersistMessageUseCaseImpl(messageRepository, userId)

Expand Down Expand Up @@ -798,19 +789,6 @@ class UserSessionScope internal constructor(
authenticatedNetworkContainer.clientApi,
)

private val sessionEstablisher: SessionEstablisher
get() = SessionEstablisherImpl(proteusClientProvider, preKeyRepository)

private val messageEnvelopeCreator: MessageEnvelopeCreator
get() = MessageEnvelopeCreatorImpl(
proteusClientProvider = proteusClientProvider, selfUserId = userId
)

private val mlsMessageCreator: MLSMessageCreator
get() = MLSMessageCreatorImpl(
mlsClientProvider = mlsClientProvider, selfUserId = userId
)

private val messageSendingScheduler: MessageSendingScheduler
get() = userSessionWorkScheduler

Expand Down
Loading