From 306b8f08fdf2a226eb104c1631d45564f238f79f Mon Sep 17 00:00:00 2001 From: MoFtZ Date: Mon, 8 Jan 2024 21:01:24 +1100 Subject: [PATCH] Removed redundant preprocessor statements. --- Src/ILGPU.Analyzers.Tests/Generic/ModuleInitializer.cs | 5 ----- Src/ILGPU.Analyzers.Tests/InterleaveFields.cs | 5 ----- 2 files changed, 10 deletions(-) diff --git a/Src/ILGPU.Analyzers.Tests/Generic/ModuleInitializer.cs b/Src/ILGPU.Analyzers.Tests/Generic/ModuleInitializer.cs index 02686dc50..fd591f7ad 100644 --- a/Src/ILGPU.Analyzers.Tests/Generic/ModuleInitializer.cs +++ b/Src/ILGPU.Analyzers.Tests/Generic/ModuleInitializer.cs @@ -9,9 +9,6 @@ // Source License. See LICENSE.txt for details. // --------------------------------------------------------------------------------------- -// [ModuleInitializer] is only available from net5.0 and later. -#if NET5_0_OR_GREATER - using System.Runtime.CompilerServices; using VerifyTests; @@ -24,5 +21,3 @@ public static void Init() => VerifySourceGenerators.Initialize(); } } - -#endif diff --git a/Src/ILGPU.Analyzers.Tests/InterleaveFields.cs b/Src/ILGPU.Analyzers.Tests/InterleaveFields.cs index cc913313f..ca0b5705b 100644 --- a/Src/ILGPU.Analyzers.Tests/InterleaveFields.cs +++ b/Src/ILGPU.Analyzers.Tests/InterleaveFields.cs @@ -9,9 +9,6 @@ // Source License. See LICENSE.txt for details. // --------------------------------------------------------------------------------------- -// [ModuleInitializer] is only available from net5.0 and later. -#if NET5_0_OR_GREATER - using System.Threading.Tasks; using VerifyXunit; using Xunit; @@ -207,5 +204,3 @@ partial struct MyPoint4 } } - -#endif