From 0c32091987def4c2b09757f42e7cc929e26b8a42 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 1 Jan 2022 14:05:03 +0100 Subject: [PATCH] Remove unnecessary using statements --- samples/ComputeSharp.SwapChain.Uwp/Properties/AssemblyInfo.cs | 1 - .../Extensions/Interop/ID3D12GraphicsCommandListExtensions.cs | 1 - src/ComputeSharp/Graphics/GraphicsDevice.Execute.cs | 4 +--- .../DirectX/other/d3dx12/D3D12_RESOURCE_DESC.Manual.cs | 1 - .../Windows/um/wincodec/IWICImagingFactory2.cs | 1 - 5 files changed, 1 insertion(+), 7 deletions(-) diff --git a/samples/ComputeSharp.SwapChain.Uwp/Properties/AssemblyInfo.cs b/samples/ComputeSharp.SwapChain.Uwp/Properties/AssemblyInfo.cs index 84399f6d..c199ce78 100644 --- a/samples/ComputeSharp.SwapChain.Uwp/Properties/AssemblyInfo.cs +++ b/samples/ComputeSharp.SwapChain.Uwp/Properties/AssemblyInfo.cs @@ -1,5 +1,4 @@ using System.Reflection; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12GraphicsCommandListExtensions.cs b/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12GraphicsCommandListExtensions.cs index 16bb50b1..56b4548a 100644 --- a/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12GraphicsCommandListExtensions.cs +++ b/src/ComputeSharp/Graphics/Extensions/Interop/ID3D12GraphicsCommandListExtensions.cs @@ -1,5 +1,4 @@ using System; -using Microsoft.Toolkit.Diagnostics; using TerraFX.Interop.DirectX; namespace ComputeSharp.Graphics.Extensions; diff --git a/src/ComputeSharp/Graphics/GraphicsDevice.Execute.cs b/src/ComputeSharp/Graphics/GraphicsDevice.Execute.cs index 4c40fe99..feb93964 100644 --- a/src/ComputeSharp/Graphics/GraphicsDevice.Execute.cs +++ b/src/ComputeSharp/Graphics/GraphicsDevice.Execute.cs @@ -1,6 +1,5 @@ using System; using System.Collections.Concurrent; -using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Threading; @@ -9,7 +8,6 @@ using System.Threading.Tasks.Sources; using ComputeSharp.Core.Extensions; using ComputeSharp.Graphics.Commands; using ComputeSharp.Graphics.Commands.Interop; -using ComputeSharp.Interop; using Microsoft.Toolkit.Diagnostics; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; @@ -21,7 +19,7 @@ using UnmanagedCallersOnlyAttribute = ComputeSharp.NetStandard.System.Runtime.In namespace ComputeSharp; /// -unsafe partial class GraphicsDevice : NativeObject +unsafe partial class GraphicsDevice { #if !NET6_0_OR_GREATER /// diff --git a/src/TerraFX.Interop.Windows/DirectX/other/d3dx12/D3D12_RESOURCE_DESC.Manual.cs b/src/TerraFX.Interop.Windows/DirectX/other/d3dx12/D3D12_RESOURCE_DESC.Manual.cs index 8150cc56..124227e1 100644 --- a/src/TerraFX.Interop.Windows/DirectX/other/d3dx12/D3D12_RESOURCE_DESC.Manual.cs +++ b/src/TerraFX.Interop.Windows/DirectX/other/d3dx12/D3D12_RESOURCE_DESC.Manual.cs @@ -7,7 +7,6 @@ using System; using static TerraFX.Interop.DirectX.D3D12_RESOURCE_DIMENSION; using static TerraFX.Interop.DirectX.D3D12_RESOURCE_FLAGS; using static TerraFX.Interop.DirectX.D3D12_TEXTURE_LAYOUT; -using static TerraFX.Interop.DirectX.DirectX; using static TerraFX.Interop.DirectX.DXGI_FORMAT; namespace TerraFX.Interop.DirectX diff --git a/src/TerraFX.Interop.Windows/Windows/um/wincodec/IWICImagingFactory2.cs b/src/TerraFX.Interop.Windows/Windows/um/wincodec/IWICImagingFactory2.cs index ef504dce..d0a1be4a 100644 --- a/src/TerraFX.Interop.Windows/Windows/um/wincodec/IWICImagingFactory2.cs +++ b/src/TerraFX.Interop.Windows/Windows/um/wincodec/IWICImagingFactory2.cs @@ -7,7 +7,6 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; -using TerraFX.Interop.DirectX; namespace TerraFX.Interop.Windows {