Skip to content

Commit 3d4a3e3

Browse files
authored
Removed TypeHandle in Instance since it wasn't used anywhere. (#263)
1 parent a5668ce commit 3d4a3e3

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/Instance.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Runtime.InteropServices;
33
using System.Text;
4-
using Microsoft.Win32.SafeHandles;
54

65
namespace Wasmtime
76
{
@@ -603,21 +602,6 @@ internal Instance(Store store, ExternInstance instance)
603602
this.instance = instance;
604603
}
605604

606-
internal class TypeHandle : SafeHandleZeroOrMinusOneIsInvalid
607-
{
608-
public TypeHandle(IntPtr handle)
609-
: base(true)
610-
{
611-
SetHandle(handle);
612-
}
613-
614-
protected override bool ReleaseHandle()
615-
{
616-
Native.wasmtime_instancetype_delete(handle);
617-
return true;
618-
}
619-
}
620-
621605
private static class Native
622606
{
623607
[DllImport(Engine.LibraryName)]

0 commit comments

Comments
 (0)