From 694fd927c1a1cfb8bfc9c6b4c63adc03ee75c133 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 29 Aug 2024 10:36:42 -0600 Subject: [PATCH] remove finalizers per PR feedback Signed-off-by: Joel Dice --- crates/csharp/src/lib.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crates/csharp/src/lib.rs b/crates/csharp/src/lib.rs index d125a628c..e4d574d3b 100644 --- a/crates/csharp/src/lib.rs +++ b/crates/csharp/src/lib.rs @@ -1463,7 +1463,6 @@ impl InterfaceGenerator<'_> { public void Dispose() {{ Dispose(true); - GC.SuppressFinalize(this); }} [DllImport("{module_name}", EntryPoint = "[resource-drop]{name}"), WasmImportLinkage] @@ -1475,10 +1474,6 @@ impl InterfaceGenerator<'_> { Handle = 0; }} }} - - ~{upper_camel}() {{ - Dispose(false); - }} "# ); }