Fix obsoletion warnings for BinaryFormatter stuff

This became an outright warning in .NET 8. Into the trash, never used it.
This commit is contained in:
Pieter-Jan Briers
2023-12-15 19:37:13 +01:00
parent 01df42aa8f
commit 816a535a92
16 changed files with 0 additions and 135 deletions

View File

@@ -61,18 +61,5 @@ namespace OpenToolkit.GraphicsLibraryFramework
: base(message, innerException)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="GLFWException"/> class with the specified context
/// and the serialization information.
/// </summary>
/// <param name="info">The <see cref="SerializationInfo"/> associated with this exception.</param>
/// <param name="context">
/// A <see cref="StreamingContext"/> that represents the context of this exception.
/// </param>
protected GLFWException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}

View File

@@ -18,11 +18,5 @@ namespace Robust.Client.GameObjects
public ComponentStateApplyException(string message, Exception inner) : base(message, inner)
{
}
protected ComponentStateApplyException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
}
}

View File

@@ -20,11 +20,5 @@ namespace Robust.Client.Graphics.Clyde
public ShaderCompilationException(string message, Exception inner) : base(message, inner)
{
}
protected ShaderCompilationException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
}
}

View File

@@ -125,12 +125,6 @@ namespace Robust.Client.Graphics.Clyde
public GlfwException(string message, Exception inner) : base(message, inner)
{
}
protected GlfwException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
}
}
}

View File

@@ -799,11 +799,5 @@ namespace Robust.Shared.Configuration
public InvalidConfigurationException(string message, Exception inner) : base(message, inner)
{
}
protected InvalidConfigurationException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context)
{
}
}
}

View File

@@ -18,11 +18,5 @@ namespace Robust.Shared.ContentPack
public TypeCheckFailedException(string message, Exception inner) : base(message, inner)
{
}
protected TypeCheckFailedException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
}
}

View File

@@ -32,24 +32,5 @@ namespace Robust.Shared.Exceptions
{
TypeArgumentName = name;
}
private TypeArgumentException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
TypeArgumentName = info.GetString("TypeArgumentName");
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
if (info == null)
{
throw new ArgumentNullException(nameof(info));
}
info.AddValue("TypeArgumentName", TypeArgumentName);
base.GetObjectData(info, context);
}
}
}

View File

@@ -503,9 +503,6 @@ namespace Robust.Shared.GameObjects
public UnknownComponentException(string message, Exception inner) : base(message, inner)
{
}
protected UnknownComponentException(
SerializationInfo info,
StreamingContext context) : base(info, context) { }
}
[Virtual]

View File

@@ -24,11 +24,5 @@ namespace Robust.Shared.GameObjects
public EntityCreationException(string message, Exception inner) : base(message, inner)
{
}
protected EntityCreationException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
}
}

View File

@@ -20,17 +20,5 @@ namespace Robust.Shared.IoC.Exceptions
{
typeName = type.AssemblyQualifiedName;
}
protected ImplementationConstructorException(SerializationInfo info, StreamingContext context) : base(info, context)
{
typeName = info.GetString("typeName");
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("typeName", typeName);
}
}
}

View File

@@ -34,23 +34,5 @@ namespace Robust.Shared.IoC.Exceptions
TargetType = target.AssemblyQualifiedName;
FieldName = fieldName;
}
protected UnregisteredDependencyException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
OwnerType = info.GetString("OwnerType");
TargetType = info.GetString("TargetType");
FieldName = info.GetString("FieldName");
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("OwnerType", OwnerType);
info.AddValue("TargetType", TargetType);
info.AddValue("FieldName", FieldName);
}
}
}

View File

@@ -19,17 +19,5 @@ namespace Robust.Shared.IoC.Exceptions
{
TypeName = type.AssemblyQualifiedName;
}
protected UnregisteredTypeException(SerializationInfo info, StreamingContext context) : base(info, context)
{
TypeName = info.GetString("TypeName");
}
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("TypeName", TypeName);
}
}
}

View File

@@ -1153,12 +1153,6 @@ namespace Robust.Shared.Network
public ClientDisconnectedException(string message, Exception inner) : base(message, inner)
{
}
protected ClientDisconnectedException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
}
private sealed class NetPeerData

View File

@@ -18,10 +18,6 @@ public class PrototypeLoadException : Exception
public PrototypeLoadException(string message, Exception inner) : base(message, inner)
{
}
public PrototypeLoadException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
[Serializable]

View File

@@ -155,10 +155,4 @@ public class RSILoadException : Exception
public RSILoadException(string message, Exception inner) : base(message, inner)
{
}
protected RSILoadException(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) : base(info, context)
{
}
}

View File

@@ -18,11 +18,5 @@ namespace Robust.Shared
public SandboxArgumentException(string message, Exception inner) : base(message, inner)
{
}
protected SandboxArgumentException(
SerializationInfo info,
StreamingContext context) : base(info, context)
{
}
}
}