From 73a49edf8323b512799ee2a88a5e286bc72b9ce5 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 11 May 2024 23:18:29 +0200 Subject: [PATCH] Remove unnecessary trim suppression --- src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs b/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs index bfef4507..9253efbd 100644 --- a/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs +++ b/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs @@ -1,5 +1,4 @@ using System; -using System.Diagnostics.CodeAnalysis; using ComputeSharp.Win32; using WinRT; using IInspectable = ComputeSharp.Win32.IInspectable; @@ -31,7 +30,6 @@ internal static unsafe class RcwMarshaller /// The input RCW instance to unwrap. /// A pointer to the resulting native object to retrieve. /// This method should only be called with being a concrete projected type. - [SuppressMessage("Trimming", "IL2091", Justification = "Private reflection on constructors is only needed when using 'FromAbi' to create RCWs.")] public static void GetNativeObject(T managedObject, IInspectable** nativeObject) where T : class {