From d74d7fcecc7a699a2e5c4bb8fdce9540a62d1dd2 Mon Sep 17 00:00:00 2001 From: js6pak Date: Thu, 25 Jan 2024 12:10:36 +0100 Subject: [PATCH] Drop BinaryFormatter override in ImpostorException --- src/Impostor.Api/Exceptions/ImpostorConfigException.cs | 5 ----- src/Impostor.Api/Exceptions/ImpostorException.cs | 5 ----- src/Impostor.Api/Exceptions/ImpostorProtocolException.cs | 5 ----- src/Impostor.Server/Plugins/PluginLoaderException.cs | 5 ----- 4 files changed, 20 deletions(-) diff --git a/src/Impostor.Api/Exceptions/ImpostorConfigException.cs b/src/Impostor.Api/Exceptions/ImpostorConfigException.cs index 01b20d4..5430297 100644 --- a/src/Impostor.Api/Exceptions/ImpostorConfigException.cs +++ b/src/Impostor.Api/Exceptions/ImpostorConfigException.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization; namespace Impostor.Api { @@ -16,9 +15,5 @@ namespace Impostor.Api public ImpostorConfigException(string? message, Exception? innerException) : base(message, innerException) { } - - protected ImpostorConfigException(SerializationInfo info, StreamingContext context) : base(info, context) - { - } } } diff --git a/src/Impostor.Api/Exceptions/ImpostorException.cs b/src/Impostor.Api/Exceptions/ImpostorException.cs index 0389194..8589c31 100644 --- a/src/Impostor.Api/Exceptions/ImpostorException.cs +++ b/src/Impostor.Api/Exceptions/ImpostorException.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization; namespace Impostor.Api { @@ -16,9 +15,5 @@ namespace Impostor.Api public ImpostorException(string? message, Exception? innerException) : base(message, innerException) { } - - protected ImpostorException(SerializationInfo info, StreamingContext context) : base(info, context) - { - } } } diff --git a/src/Impostor.Api/Exceptions/ImpostorProtocolException.cs b/src/Impostor.Api/Exceptions/ImpostorProtocolException.cs index 513e590..cf7afca 100644 --- a/src/Impostor.Api/Exceptions/ImpostorProtocolException.cs +++ b/src/Impostor.Api/Exceptions/ImpostorProtocolException.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization; namespace Impostor.Api { @@ -16,9 +15,5 @@ namespace Impostor.Api public ImpostorProtocolException(string? message, Exception? innerException) : base(message, innerException) { } - - protected ImpostorProtocolException(SerializationInfo info, StreamingContext context) : base(info, context) - { - } } } diff --git a/src/Impostor.Server/Plugins/PluginLoaderException.cs b/src/Impostor.Server/Plugins/PluginLoaderException.cs index 740cc46..7c47c30 100644 --- a/src/Impostor.Server/Plugins/PluginLoaderException.cs +++ b/src/Impostor.Server/Plugins/PluginLoaderException.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.Serialization; using Impostor.Api; namespace Impostor.Server.Plugins @@ -17,9 +16,5 @@ namespace Impostor.Server.Plugins public PluginLoaderException(string? message, Exception? innerException) : base(message, innerException) { } - - protected PluginLoaderException(SerializationInfo info, StreamingContext context) : base(info, context) - { - } } } -- 2.39.5