Skip to content

Commit

Permalink
Remove unused Subscriber.Resubscribe method
Browse files Browse the repository at this point in the history
  • Loading branch information
skibitsky committed Aug 19, 2024
1 parent 27f1fa6 commit dd41283
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions WalletConnectSharp.Core/Controllers/Subscriber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> RpcSubscribe(string topic, ProtocolOptions relay)
{
var api = RelayProtocols.GetRelayProtocol(relay.Protocol);
Expand Down

0 comments on commit dd41283

Please sign in to comment.