Skip to content

Commit 8aff893

Browse files
Delete an unused Span class from object.h (#89464)
1 parent 8c51f01 commit 8aff893

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/coreclr/vm/object.h

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -740,39 +740,6 @@ class PtrArray : public ArrayBase
740740

741741
#define OFFSETOF__PtrArray__m_Array_ ARRAYBASE_SIZE
742742

743-
/* Corresponds to the managed Span<T> and ReadOnlySpan<T> types.
744-
This should only ever be passed from the managed to the unmanaged world byref,
745-
as any copies of this struct made within the unmanaged world will not observe
746-
potential GC relocations of the source data. */
747-
template < class KIND >
748-
class Span
749-
{
750-
private:
751-
/* Keep fields below in sync with managed Span / ReadOnlySpan layout. */
752-
KIND* _reference;
753-
unsigned int _length;
754-
755-
public:
756-
// !! CAUTION !!
757-
// Caller must take care not to reassign returned reference if this span corresponds
758-
// to a managed ReadOnlySpan<T>. If KIND is a reference type, caller must use a
759-
// helper like SetObjectReference instead of assigning values directly to the
760-
// reference location.
761-
KIND& GetAt(SIZE_T index)
762-
{
763-
LIMITED_METHOD_CONTRACT;
764-
SUPPORTS_DAC;
765-
_ASSERTE(index < GetLength());
766-
return _reference[index];
767-
}
768-
769-
// Gets the length (in elements) of this span.
770-
__inline SIZE_T GetLength() const
771-
{
772-
return _length;
773-
}
774-
};
775-
776743
/* a TypedByRef is a structure that is used to implement VB's BYREF variants.
777744
it is basically a tuple of an address of some data along with a TypeHandle
778745
that indicates the type of the address */

0 commit comments

Comments
 (0)