Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Commit 49130c4

Browse files
committed
Remove unused code
1 parent 1b466df commit 49130c4

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/runtime/typemanager.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,7 @@ public void ResetSlots()
810810
Runtime.XDecref(tp_bases);
811811
tp_bases = Runtime.PyTuple_New(0);
812812
Marshal.WriteIntPtr(_type, TypeOffset.tp_bases, tp_bases);
813-
try
814-
{
813+
815814
IntPtr handlePtr = Marshal.ReadIntPtr(_type, TypeOffset.magic());
816815
if (handlePtr != IntPtr.Zero)
817816
{
@@ -822,14 +821,6 @@ public void ResetSlots()
822821
}
823822
Marshal.WriteIntPtr(_type, TypeOffset.magic(), IntPtr.Zero);
824823
}
825-
826-
}
827-
catch (Exception)
828-
{
829-
830-
throw;
831-
}
832-
833824
}
834825

835826
public static IntPtr GetDefaultSlot(int offset)

0 commit comments

Comments
 (0)