Skip to content

Commit

Permalink
Update signalr exceptions in line with deprecated ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Oct 18, 2024
1 parent ca2bd64 commit 7ca5f91
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 45 deletions.
9 changes: 0 additions & 9 deletions osu.Game/Online/Multiplayer/InvalidPasswordException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,12 @@
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Runtime.Serialization;
using Microsoft.AspNetCore.SignalR;

namespace osu.Game.Online.Multiplayer
{
[Serializable]
public class InvalidPasswordException : HubException
{
public InvalidPasswordException()
{
}

protected InvalidPasswordException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}
6 changes: 0 additions & 6 deletions osu.Game/Online/Multiplayer/InvalidStateChangeException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Runtime.Serialization;
using Microsoft.AspNetCore.SignalR;

namespace osu.Game.Online.Multiplayer
Expand All @@ -14,10 +13,5 @@ public InvalidStateChangeException(MultiplayerUserState oldState, MultiplayerUse
: base($"Cannot change from {oldState} to {newState}")
{
}

protected InvalidStateChangeException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}
6 changes: 0 additions & 6 deletions osu.Game/Online/Multiplayer/InvalidStateException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Runtime.Serialization;
using Microsoft.AspNetCore.SignalR;

namespace osu.Game.Online.Multiplayer
Expand All @@ -14,10 +13,5 @@ public InvalidStateException(string message)
: base(message)
{
}

protected InvalidStateException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}
6 changes: 0 additions & 6 deletions osu.Game/Online/Multiplayer/NotHostException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Runtime.Serialization;
using Microsoft.AspNetCore.SignalR;

namespace osu.Game.Online.Multiplayer
Expand All @@ -14,10 +13,5 @@ public NotHostException()
: base("User is attempting to perform a host level operation while not the host")
{
}

protected NotHostException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}
6 changes: 0 additions & 6 deletions osu.Game/Online/Multiplayer/NotJoinedRoomException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Runtime.Serialization;
using Microsoft.AspNetCore.SignalR;

namespace osu.Game.Online.Multiplayer
Expand All @@ -14,10 +13,5 @@ public NotJoinedRoomException()
: base("This user has not yet joined a multiplayer room.")
{
}

protected NotJoinedRoomException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}
6 changes: 0 additions & 6 deletions osu.Game/Online/Multiplayer/UserBlockedException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Runtime.Serialization;
using Microsoft.AspNetCore.SignalR;

namespace osu.Game.Online.Multiplayer
Expand All @@ -16,10 +15,5 @@ public UserBlockedException()
: base(MESSAGE)
{
}

protected UserBlockedException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}
6 changes: 0 additions & 6 deletions osu.Game/Online/Multiplayer/UserBlocksPMsException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.

using System;
using System.Runtime.Serialization;
using Microsoft.AspNetCore.SignalR;

namespace osu.Game.Online.Multiplayer
Expand All @@ -16,10 +15,5 @@ public UserBlocksPMsException()
: base(MESSAGE)
{
}

protected UserBlocksPMsException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}

0 comments on commit 7ca5f91

Please sign in to comment.