8000 Remove TODOS · pythonnet/pythonnet@4ba50a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ba50a7

Browse files
committed
Remove TODOS
tp_clear and tp_traverse always return 0. No error check to do Addresses comments: #958 #958
1 parent 82034dc commit 4ba50a7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/runtime/managedtype.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ internal void CallTypeClear()
176176
return;
177177
}
178178
var clearFunc = (Interop.InquiryFunc)Marshal.GetDelegateForFunctionPointer(clearPtr, typeof(Interop.InquiryFunc));
179-
// TODO: Handle errors base on return value
180179
clearFunc(pyHandle);
181180
}
182181

@@ -196,7 +195,6 @@ internal void CallTypeTraverse(Interop.ObjObjFunc visitproc, IntPtr arg)
196195
}
197196
var traverseFunc = (Interop.ObjObjArgFunc)Marshal.GetDelegateForFunctionPointer(traversePtr, typeof(Interop.ObjObjArgFunc));
198197
var visiPtr = Marshal.GetFunctionPointerForDelegate(visitproc);
199-
// TODO: Handle errors base on return value
200198
traverseFunc(pyHandle, visiPtr, arg);
201199
}
202200

0 commit comments

Comments
 (0)
0