@@ -47,9 +47,6 @@ public override ILPostProcessResult Process(ICompiledAssembly compiledAssembly)
4747
4848 switch ( typeDefinition . Name )
4949 {
50- case nameof ( NetworkManager ) :
51- ProcessNetworkManager ( typeDefinition , compiledAssembly . Defines ) ;
52- break ;
5350 case nameof ( NetworkBehaviour ) :
5451 ProcessNetworkBehaviour ( typeDefinition ) ;
5552 break ;
@@ -90,38 +87,6 @@ public override ILPostProcessResult Process(ICompiledAssembly compiledAssembly)
9087 return new ILPostProcessResult ( new InMemoryAssembly ( pe . ToArray ( ) , pdb . ToArray ( ) ) , m_Diagnostics ) ;
9188 }
9289
93- // TODO: Deprecate...
94- // This is changing accessibility for values that are no longer used, but since our validator runs
95- // after ILPP and sees those values as public, they cannot be removed until a major version change.
96- private void ProcessNetworkManager ( TypeDefinition typeDefinition , string [ ] assemblyDefines )
97- {
98- foreach ( var fieldDefinition in typeDefinition . Fields )
99- {
100- if ( fieldDefinition . Name == nameof ( NetworkManager . __rpc_func_table ) )
101- {
102- fieldDefinition . IsPublic = true ;
103- }
104-
105- if ( fieldDefinition . Name == nameof ( NetworkManager . RpcReceiveHandler ) )
106- {
107- fieldDefinition . IsPublic = true ;
108- }
109-
110- if ( fieldDefinition . Name == nameof ( NetworkManager . __rpc_name_table ) )
111- {
112- fieldDefinition . IsPublic = true ;
113- }
114- }
115-
116- foreach ( var nestedTypeDefinition in typeDefinition . NestedTypes )
117- {
118- if ( nestedTypeDefinition . Name == nameof ( NetworkManager . RpcReceiveHandler ) )
119- {
120- nestedTypeDefinition . IsNestedPublic = true ;
121- }
122- }
123- }
124-
12590 private void ProcessNetworkBehaviour ( TypeDefinition typeDefinition )
12691 {
12792 foreach ( var nestedType in typeDefinition . NestedTypes )
0 commit comments