diff options
author | brian-taylor-unity <52750961+brian-taylor-unity@users.noreply.github.com> | 2020-09-22 18:32:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-22 18:32:55 +0300 |
commit | fe430b87123dd2c0f864c35a2150cfc9f1cb8b8c (patch) | |
tree | d86c04138eafdbdb5837ae68e8df9f8d76ea1996 | |
parent | b4c2d90923e5a04c83f390d7430eb030a262ec4a (diff) |
Remove remaining unused using directives from test cases for compatibility with UnityLinker (#1502)
5 files changed, 7 insertions, 8 deletions
diff --git a/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion0.cs b/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion0.cs index e5457f5c4..a9d9200b3 100644 --- a/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion0.cs +++ b/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion0.cs @@ -1,6 +1,4 @@ using System; -using System.Linq.Expressions; -using System.Reflection; using System.Diagnostics.CodeAnalysis; using Mono.Linker.Tests.Cases.Expectations.Assertions; using Mono.Linker.Tests.Cases.Expectations.Metadata; diff --git a/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion5.cs b/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion5.cs index fdff415aa..8ce2ac417 100644 --- a/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion5.cs +++ b/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion5.cs @@ -1,6 +1,4 @@ using System; -using System.Linq.Expressions; -using System.Reflection; using System.Diagnostics.CodeAnalysis; using Mono.Linker.Tests.Cases.Expectations.Assertions; using Mono.Linker.Tests.Cases.Expectations.Metadata; diff --git a/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion9999.cs b/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion9999.cs index 476f67dcd..9bf6de9a0 100644 --- a/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion9999.cs +++ b/test/Mono.Linker.Tests.Cases/Warnings/CanSetWarningVersion9999.cs @@ -1,6 +1,4 @@ using System; -using System.Linq.Expressions; -using System.Reflection; using System.Diagnostics.CodeAnalysis; using Mono.Linker.Tests.Cases.Expectations.Assertions; using Mono.Linker.Tests.Cases.Expectations.Metadata; diff --git a/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/AddSuppressionsBeforeAttributeRemoval.cs b/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/AddSuppressionsBeforeAttributeRemoval.cs index bdf95bbc6..49002c28d 100644 --- a/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/AddSuppressionsBeforeAttributeRemoval.cs +++ b/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/AddSuppressionsBeforeAttributeRemoval.cs @@ -1,13 +1,14 @@ using Mono.Linker.Tests.Cases.Expectations.Assertions; using Mono.Linker.Tests.Cases.Expectations.Metadata; using System; -using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Linq.Expressions; -using System.Text; namespace Mono.Linker.Tests.Cases.Warnings.WarningSuppression { +#if !ILLINK + [Reference ("System.Core.dll")] +#endif [SkipKeptItemsValidation] [SetupLinkAttributesFile ("AddSuppressionsBeforeAttributeRemoval.xml")] [LogDoesNotContain ("IL2067: Mono.Linker.Tests.Cases.Warnings.WarningSuppression.AddSuppressionsBeforeAttributeRemoval.Main()")] diff --git a/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/SuppressWarningsInMembersAndTypes.cs b/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/SuppressWarningsInMembersAndTypes.cs index b50279fdc..e3bac74c1 100644 --- a/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/SuppressWarningsInMembersAndTypes.cs +++ b/test/Mono.Linker.Tests.Cases/Warnings/WarningSuppression/SuppressWarningsInMembersAndTypes.cs @@ -2,9 +2,13 @@ using System; using System.Diagnostics.CodeAnalysis; using System.Linq.Expressions; +using Mono.Linker.Tests.Cases.Expectations.Metadata; namespace Mono.Linker.Tests.Cases.Warnings.WarningSuppression { +#if !ILLINK + [Reference ("System.Core.dll")] +#endif [SkipKeptItemsValidation] [LogDoesNotContain ("TriggerUnrecognizedPattern()")] public class SuppressWarningsInMembersAndTypes |