From 8bce6eb3ac47ba3b39d9eefa0d7bf7573d85f103 Mon Sep 17 00:00:00 2001 From: KonH Date: Sat, 2 Oct 2021 19:01:58 +0700 Subject: [PATCH] Remove GC.SuppressFinalize calls from classes without destructors --- OpenRA.Game/Network/Connection.cs | 1 - OpenRA.Platforms.Default/FrameBuffer.cs | 1 - OpenRA.Platforms.Default/Sdl2HardwareCursor.cs | 1 - OpenRA.Platforms.Default/Texture.cs | 1 - OpenRA.Platforms.Default/VertexBuffer.cs | 1 - 5 files changed, 5 deletions(-) diff --git a/OpenRA.Game/Network/Connection.cs b/OpenRA.Game/Network/Connection.cs index 998c0c053e..e6c2683161 100644 --- a/OpenRA.Game/Network/Connection.cs +++ b/OpenRA.Game/Network/Connection.cs @@ -384,7 +384,6 @@ namespace OpenRA.Network void IDisposable.Dispose() { Dispose(true); - GC.SuppressFinalize(this); } } } diff --git a/OpenRA.Platforms.Default/FrameBuffer.cs b/OpenRA.Platforms.Default/FrameBuffer.cs index 26d8a5e51c..f3e39a2b46 100644 --- a/OpenRA.Platforms.Default/FrameBuffer.cs +++ b/OpenRA.Platforms.Default/FrameBuffer.cs @@ -144,7 +144,6 @@ namespace OpenRA.Platforms.Default public void Dispose() { Dispose(true); - GC.SuppressFinalize(this); } void Dispose(bool disposing) diff --git a/OpenRA.Platforms.Default/Sdl2HardwareCursor.cs b/OpenRA.Platforms.Default/Sdl2HardwareCursor.cs index 9b546c4320..f1cdc98954 100644 --- a/OpenRA.Platforms.Default/Sdl2HardwareCursor.cs +++ b/OpenRA.Platforms.Default/Sdl2HardwareCursor.cs @@ -47,7 +47,6 @@ namespace OpenRA.Platforms.Default public void Dispose() { Dispose(true); - GC.SuppressFinalize(this); } void Dispose(bool disposing) diff --git a/OpenRA.Platforms.Default/Texture.cs b/OpenRA.Platforms.Default/Texture.cs index 4a4e82a2c3..9508b72336 100644 --- a/OpenRA.Platforms.Default/Texture.cs +++ b/OpenRA.Platforms.Default/Texture.cs @@ -208,7 +208,6 @@ namespace OpenRA.Platforms.Default public void Dispose() { Dispose(true); - GC.SuppressFinalize(this); } void Dispose(bool disposing) diff --git a/OpenRA.Platforms.Default/VertexBuffer.cs b/OpenRA.Platforms.Default/VertexBuffer.cs index c915989769..21f3082ef5 100644 --- a/OpenRA.Platforms.Default/VertexBuffer.cs +++ b/OpenRA.Platforms.Default/VertexBuffer.cs @@ -98,7 +98,6 @@ namespace OpenRA.Platforms.Default public void Dispose() { Dispose(true); - GC.SuppressFinalize(this); } void Dispose(bool disposing)