summaryrefslogtreecommitdiff
path: root/src/vm/comutilnative.cpp
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2019-01-20 08:16:44 -0800
committerGitHub <noreply@github.com>2019-01-20 08:16:44 -0800
commit170854b92017d709bc82d7631c6cb33dd7443078 (patch)
treee4d216f1b1be6d9207644e160f86af8846c02577 /src/vm/comutilnative.cpp
parent614966d1e179c32ce85df2791102847128390ca6 (diff)
downloadcoreclr-170854b92017d709bc82d7631c6cb33dd7443078.tar.gz
coreclr-170854b92017d709bc82d7631c6cb33dd7443078.tar.bz2
coreclr-170854b92017d709bc82d7631c6cb33dd7443078.zip
Cleanup array related FCalls (#22097)
* Cleanup Array FCalls * Disable outdated CoreFX tests https://github.com/dotnet/corefx/pull/34700
Diffstat (limited to 'src/vm/comutilnative.cpp')
-rw-r--r--src/vm/comutilnative.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/vm/comutilnative.cpp b/src/vm/comutilnative.cpp
index 15bde67f2f..7ca48ffc59 100644
--- a/src/vm/comutilnative.cpp
+++ b/src/vm/comutilnative.cpp
@@ -850,37 +850,6 @@ FCIMPL1(FC_BOOL_RET, Buffer::IsPrimitiveTypeArray, ArrayBase *arrayUNSAFE)
}
FCIMPLEND
-// Gets a particular byte out of the array. The array can't be an array of Objects - it
-// must be a primitive array.
-FCIMPL2(FC_UINT8_RET, Buffer::GetByte, ArrayBase *arrayUNSAFE, INT32 index)
-{
- FCALL_CONTRACT;
-
- _ASSERTE(arrayUNSAFE != NULL);
- _ASSERTE(index >=0 && index < ((INT32)(arrayUNSAFE->GetComponentSize() * arrayUNSAFE->GetNumComponents())));
-
- UINT8 bData = *((BYTE*)arrayUNSAFE->GetDataPtr() + index);
- return bData;
-}
-FCIMPLEND
-
-// Sets a particular byte in an array. The array can't be an array of Objects - it
-// must be a primitive array.
-//
-// Semantically the bData argment is of type BYTE but FCallCheckSignature expects the
-// type to be UINT8 and raises an error if this isn't this case when
-// COMPlus_ConsistencyCheck is set.
-FCIMPL3(VOID, Buffer::SetByte, ArrayBase *arrayUNSAFE, INT32 index, UINT8 bData)
-{
- FCALL_CONTRACT;
-
- _ASSERTE(arrayUNSAFE != NULL);
- _ASSERTE(index >=0 && index < ((INT32)(arrayUNSAFE->GetComponentSize() * arrayUNSAFE->GetNumComponents())));
-
- *((BYTE*)arrayUNSAFE->GetDataPtr() + index) = (BYTE) bData;
-}
-FCIMPLEND
-
// Returns the length in bytes of an array containing
// primitive type elements
FCIMPL1(INT32, Buffer::ByteLength, ArrayBase* arrayUNSAFE)