From b0cc64ef3e1655bca7a7cabfa17eabe9eb639145 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Mon, 14 Jun 2021 17:47:14 +0530 Subject: [PATCH] remove deprecated methods Signed-off-by: Sahil Kumar --- .../stream_chat/lib/src/client/client.dart | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/packages/stream_chat/lib/src/client/client.dart b/packages/stream_chat/lib/src/client/client.dart index 87e471e6..9abfa94c 100644 --- a/packages/stream_chat/lib/src/client/client.dart +++ b/packages/stream_chat/lib/src/client/client.dart @@ -229,38 +229,17 @@ class StreamChatClient { logger.info('logger setup'); } - /// Set the current user, this triggers a connection to the API. - /// Set the current user, this triggers a connection to the API. - /// It returns a [Future] that resolves when the connection is setup. - @Deprecated('Use `connectUser` instead. Will be removed in Future releases') - Future setUser(User user, String token) => connectUser(user, token); - /// Connects the current user, this triggers a connection to the API. /// It returns a [Future] that resolves when the connection is setup. Future connectUser(User user, String token) => _connectUser(user, token: Token.fromRawValue(token)); - /// Set the current user using the [tokenProvider] to fetch the token. - /// It returns a [Future] that resolves when the connection is setup. - @Deprecated( - 'Use `connectUserWithProvider` instead. Will be removed in Future releases', - ) - Future setUserWithProvider(User user, TokenProvider tokenProvider) => - connectUserWithProvider(user, tokenProvider); - /// Connects the current user using the [tokenProvider] to fetch the token. /// It returns a [Future] that resolves when the connection is setup. Future connectUserWithProvider( User user, TokenProvider tokenProvider) => _connectUser(user, provider: tokenProvider); - /// Set the current user with an anonymous id, this triggers a connection to - /// the API. It returns a [Future] that resolves when the connection is setup. - @Deprecated( - 'Use `connectAnonymousUser` instead. Will be removed in Future releases', - ) - Future setAnonymousUser() => connectAnonymousUser(); - /// Connects the current user with an anonymous id, this triggers a connection /// to the API. It returns a [Future] that resolves when the connection is /// setup. @@ -270,13 +249,6 @@ class StreamChatClient { return _connectUser(user, token: token); } - /// Set the current user as guest, this triggers a connection to the API. - /// It returns a [Future] that resolves when the connection is setup. - @Deprecated( - 'Use `connectGuestUser` instead. Will be removed in Future releases', - ) - Future setGuestUser(User user) => connectGuestUser(user); - /// Connects the current user as guest, this triggers a connection to the API. /// It returns a [Future] that resolves when the connection is setup. Future connectGuestUser(User user) async {