diff --git a/Robust.Shared.CompNetworkGenerator/ComponentNetworkGenerator.cs b/Robust.Shared.CompNetworkGenerator/ComponentNetworkGenerator.cs index 27862aaf0..b19ab4a25 100644 --- a/Robust.Shared.CompNetworkGenerator/ComponentNetworkGenerator.cs +++ b/Robust.Shared.CompNetworkGenerator/ComponentNetworkGenerator.cs @@ -746,17 +746,7 @@ public partial class {componentName}{deltaInterface} private static bool IsCloneType(ITypeSymbol type) { - if (type is not INamedTypeSymbol named) - { - return false; - } - - if (ImplementsInterface(named, nameof(ICloneable))) - { - return true; - } - - if (!named.IsGenericType) + if (type is not INamedTypeSymbol named || !named.IsGenericType) { return false; } @@ -768,18 +758,5 @@ public partial class {componentName}{deltaInterface} _ => false }; } - - private static bool ImplementsInterface(ITypeSymbol type, string interfaceName) - { - foreach (var interfaceType in type.AllInterfaces) - { - if (interfaceType.ToDisplayString().Contains(interfaceName)) - { - return true; - } - } - - return false; - } } }