Skip to content

Commit

Permalink
Delete serialization support from the managed type system (#84675)
Browse files Browse the repository at this point in the history
Long time ago we tried to make binary serialization sort of work with PublishAot. That code was deleted, but this was left.
  • Loading branch information
MichalStrehovsky committed Apr 12, 2023
1 parent 722e19b commit e02954b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 114 deletions.

This file was deleted.

6 changes: 0 additions & 6 deletions src/coreclr/tools/Common/TypeSystem/Ecma/EcmaField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ private static class FieldFlags
public const int InitOnly = 0x0004;
public const int Literal = 0x0008;
public const int HasRva = 0x0010;
public const int NotSerialized = 0x0020;

public const int AttributeMetadataCache = 0x0100;
public const int ThreadStatic = 0x0200;
Expand Down Expand Up @@ -147,11 +146,6 @@ private int InitializeFieldFlags(int mask)
if ((fieldAttributes & FieldAttributes.HasFieldRVA) != 0)
flags |= FieldFlags.HasRva;

#pragma warning disable SYSLIB0050 // Legacy serialization infrastructure is obsolete
if ((fieldAttributes & FieldAttributes.NotSerialized) != 0)
flags |= FieldFlags.NotSerialized;
#pragma warning restore SYSLIB0050

flags |= FieldFlags.BasicMetadataCache;
}

Expand Down
18 changes: 0 additions & 18 deletions src/coreclr/tools/Common/TypeSystem/Ecma/EcmaType.Serialization.cs

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,6 @@
<Compile Include="..\..\Common\TypeSystem\Ecma\EcmaField.CodeGen.cs">
<Link>Ecma\EcmaField.CodeGen.cs</Link>
</Compile>
<Compile Include="..\..\Common\TypeSystem\Ecma\EcmaField.Serialization.cs">
<Link>Ecma\EcmaField.Serialization.cs</Link>
</Compile>
<Compile Include="..\..\Common\TypeSystem\Ecma\EcmaGenericParameter.Sorting.cs">
<Link>Ecma\EcmaGenericParameter.Sorting.cs</Link>
</Compile>
Expand All @@ -408,9 +405,6 @@
<Compile Include="..\..\Common\TypeSystem\Ecma\EcmaModule.Sorting.cs">
<Link>Ecma\EcmaModule.Sorting.cs</Link>
</Compile>
<Compile Include="..\..\Common\TypeSystem\Ecma\EcmaType.Serialization.cs">
<Link>Ecma\EcmaType.Serialization.cs</Link>
</Compile>
<Compile Include="..\..\Common\TypeSystem\Ecma\EcmaType.Sorting.cs">
<Link>Ecma\EcmaType.Sorting.cs</Link>
</Compile>
Expand Down Expand Up @@ -531,12 +525,6 @@
<Compile Include="..\..\Common\TypeSystem\IL\Stubs\PInvokeTargetNativeMethod.Sorting.cs">
<Link>IL\Stubs\PInvokeTargetNativeMethod.Sorting.cs</Link>
</Compile>
<Compile Include="..\..\Common\TypeSystem\Serialization\FieldDesc.Serialization.cs">
<Link>TypeSystem\CodeGen\FieldDesc.Serialization.cs</Link>
</Compile>
<Compile Include="..\..\Common\TypeSystem\Serialization\TypeDesc.Serialization.cs">
<Link>TypeSystem\CodeGen\TypeDesc.Serialization.cs</Link>
</Compile>
<Compile Include="..\..\Common\TypeSystem\Sorting\FieldDesc.Sorting.cs">
<Link>TypeSystem\Sorting\FieldDesc.Sorting.cs</Link>
</Compile>
Expand Down

0 comments on commit e02954b

Please sign in to comment.