Skip to content

Commit

Permalink
Removed TypeHandle in Instance since it wasn't used anywhere. (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
martindevans authored Jul 5, 2023
1 parent a5668ce commit 3d4a3e3
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/Instance.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.Win32.SafeHandles;

namespace Wasmtime
{
Expand Down Expand Up @@ -603,21 +602,6 @@ internal Instance(Store store, ExternInstance instance)
this.instance = instance;
}

internal class TypeHandle : SafeHandleZeroOrMinusOneIsInvalid
{
public TypeHandle(IntPtr handle)
: base(true)
{
SetHandle(handle);
}

protected override bool ReleaseHandle()
{
Native.wasmtime_instancetype_delete(handle);
return true;
}
}

private static class Native
{
[DllImport(Engine.LibraryName)]
Expand Down

0 comments on commit 3d4a3e3

Please sign in to comment.