Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clean up sequence wrapper
  • Loading branch information
koubaa committed Feb 16, 2021
commit 432c09ec970fddd5006ea9543cd209e1ffc9ab12
14 changes: 0 additions & 14 deletions src/runtime/CollectionWrappers/SequenceWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,6 @@ public bool Contains(T item)
return false;
}

private T getItem(int index)
{
IntPtr item = Runtime.PySequence_GetItem(pyObject.Handle, index);
object obj;

if (!Converter.ToManaged(item, typeof(T), out obj, true))
{
Runtime.XDecref(item);
Runtime.CheckExceptionOccurred();
}

return (T)obj;
}

public void CopyTo(T[] array, int arrayIndex)
{
var index = 0;
Comment thread
koubaa marked this conversation as resolved.
Resolved
Expand Down