mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
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:
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user