Skip to content

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Jan 7, 2023
1 parent a8cbf6d commit fbb35fb
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions OpenRA.Mods.Common/DiscordService.cs
Expand Up @@ -195,18 +195,8 @@ void SetStatus(DiscordState state, string details = null, string secret = null,

void UpdateParty(int players, int slots)
{
if (client.CurrentPresence.Party != null)
{
if (client.CurrentPresence.HasParty())
client.UpdatePartySize(players, slots);
return;
}

client.UpdateParty(new Party
{
ID = Secrets.CreateFriendlySecret(new Random()),
Size = players,
Max = slots
});
}

public void Dispose()
Expand Down

0 comments on commit fbb35fb

Please sign in to comment.