From dd412833c5e7b441fdad25e4a24d030ddef8d256 Mon Sep 17 00:00:00 2001 From: skibitsky Date: Mon, 19 Aug 2024 13:25:29 +0300 Subject: [PATCH] Remove unused Subscriber.Resubscribe method --- .../Controllers/Subscriber.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/WalletConnectSharp.Core/Controllers/Subscriber.cs b/WalletConnectSharp.Core/Controllers/Subscriber.cs index 82cb81a..9c1c38c 100644 --- a/WalletConnectSharp.Core/Controllers/Subscriber.cs +++ b/WalletConnectSharp.Core/Controllers/Subscriber.cs @@ -276,22 +276,6 @@ protected virtual async Task Reset() this.Resubscribed?.Invoke(this, EventArgs.Empty); } - protected virtual async Task Resubscribe(ActiveSubscription subscription) - { - if (!Ids.Contains(subscription.Id)) - { - var @params = new PendingSubscription() { Relay = subscription.Relay, Topic = subscription.Topic }; - - if (pending.ContainsKey(@params.Topic)) - pending.Remove(@params.Topic); - - pending.Add(@params.Topic, @params); - - var id = await RpcSubscribe(@params.Topic, @params.Relay); - OnResubscribe(id, @params); - } - } - protected virtual async Task RpcSubscribe(string topic, ProtocolOptions relay) { var api = RelayProtocols.GetRelayProtocol(relay.Protocol);