@@ -132,8 +132,7 @@ public static Error[] ValidateAssemblies(string[] assemblyPaths, bool enableLogg
132132 }
133133
134134 var errors = ValidateAssemblyDefinitions ( assemblyPaths ,
135- assemblyDefinitions ,
136- PluginCompatibleWithEditor ) ;
135+ assemblyDefinitions ) ;
137136
138137 return errors ;
139138 }
@@ -212,19 +211,6 @@ public static Error[] ValidateAssemblyDefinitionFiles()
212211 return errors . ToArray ( ) ;
213212 }
214213
215- public static bool PluginCompatibleWithEditor ( string path )
216- {
217- var pluginImporter = AssetImporter . GetAtPath ( path ) as PluginImporter ;
218-
219- if ( pluginImporter == null )
220- return true ;
221-
222- if ( pluginImporter . GetCompatibleWithAnyPlatform ( ) )
223- return true ;
224-
225- return pluginImporter . GetCompatibleWithEditor ( ) ;
226- }
227-
228214 public static bool ShouldValidateReferences ( string path ,
229215 Dictionary < string , PrecompiledAssembly > allPrecompiledAssemblies )
230216 {
@@ -251,23 +237,20 @@ public static void PrintAssemblyDefinitions(AssemblyDefinition[] assemblyDefinit
251237 }
252238
253239 public static Error [ ] ValidateAssembliesInternal ( string [ ] assemblyPaths ,
254- string [ ] searchPaths ,
255- Func < string , bool > compatibleWithEditor )
240+ string [ ] searchPaths )
256241 {
257242 var assemblyDefinitions = LoadAssemblyDefinitions ( assemblyPaths , searchPaths ) ;
258- return ValidateAssemblyDefinitions ( assemblyPaths , assemblyDefinitions , compatibleWithEditor ) ;
243+ return ValidateAssemblyDefinitions ( assemblyPaths , assemblyDefinitions ) ;
259244 }
260245
261246 public static Error [ ] ValidateAssemblyDefinitions ( string [ ] assemblyPaths ,
262- AssemblyDefinition [ ] assemblyDefinitions ,
263- Func < string , bool > compatibleWithEditor )
247+ AssemblyDefinition [ ] assemblyDefinitions )
264248 {
265249 var errors = new Error [ assemblyPaths . Length ] ;
266250
267251 CheckAssemblyReferences ( assemblyPaths ,
268252 errors ,
269- assemblyDefinitions ,
270- compatibleWithEditor ) ;
253+ assemblyDefinitions ) ;
271254
272255 return errors ;
273256 }
@@ -301,11 +284,8 @@ public static AssemblyDefinition[] LoadAssemblyDefinitions(string[] assemblyPath
301284
302285 public static void CheckAssemblyReferences ( string [ ] assemblyPaths ,
303286 Error [ ] errors ,
304- AssemblyDefinition [ ] assemblyDefinitions ,
305- Func < string , bool > compatibleWithEditor )
287+ AssemblyDefinition [ ] assemblyDefinitions )
306288 {
307- SetupEditorCompatibility ( assemblyPaths , errors , compatibleWithEditor ) ;
308-
309289 var assemblyDefinitionNameToIndex = new Dictionary < string , int > ( ) ;
310290 var assembliesAndReferencesArray = new AssemblyAndReferences [ assemblyPaths . Length ] ;
311291
@@ -382,22 +362,6 @@ public static void CheckAssemblyReferences(string[] assemblyPaths,
382362 while ( referenceErrorCount > 0 ) ;
383363 }
384364
385- public static void SetupEditorCompatibility ( string [ ] assemblyPaths ,
386- Error [ ] errors ,
387- Func < string , bool > compatibleWithEditor )
388- {
389- for ( int i = 0 ; i < assemblyPaths . Length ; ++ i )
390- {
391- var assemblyPath = assemblyPaths [ i ] ;
392-
393- if ( ! compatibleWithEditor ( assemblyPath ) )
394- {
395- errors [ i ] . Add ( ErrorFlags . IncompatibleWithEditor ,
396- "Assembly is incompatible with the editor" ) ;
397- }
398- }
399- }
400-
401365 public static void ResolveAndSetupReferences ( int index ,
402366 Error [ ] errors ,
403367 AssemblyDefinition [ ] assemblyDefinitions ,
0 commit comments