Parcourir la source

Remove js_memcpy_s and js_wemecpy_s in GCStress

Tom Tan il y a 9 ans
Parent
commit
bec7d0d749
1 fichiers modifiés avec 0 ajouts et 24 suppressions
  1. 0 24
      bin/GCStress/StubExternalApi.cpp

+ 0 - 24
bin/GCStress/StubExternalApi.cpp

@@ -7,30 +7,6 @@
 
 #include "Core/ConfigParser.h"
 
-// TODO: REMOVE
-void js_memcpy_s(__bcount(sizeInBytes) void *dst, size_t sizeInBytes, __in_bcount(count) const void *src, size_t count)
-{
-    Assert((count) <= (sizeInBytes));
-    if ((count) <= (sizeInBytes))
-        memcpy((dst), (src), (count));
-    else
-        ReportFatalException(NULL, E_FAIL, Fatal_Internal_Error, 2);
-}
-
-void js_wmemcpy_s(__ecount(sizeInWords) char16 *dst, size_t sizeInWords, __in_ecount(count) const char16 *src, size_t count)
-{
-    //Multiplication Overflow check
-    Assert(count <= sizeInWords && count <= SIZE_MAX/sizeof(char16));
-    if(!(count <= sizeInWords && count <= SIZE_MAX/sizeof(char16)))
-    {
-        ReportFatalException((ULONG_PTR) NULL, E_FAIL, Fatal_Internal_Error, 2);
-    }
-    else
-    {
-        memcpy(dst, src, count * sizeof(char16));
-    }
-}
-
 bool ConfigParserAPI::FillConsoleTitle(__ecount(cchBufferSize) LPWSTR buffer, size_t cchBufferSize, __in LPWSTR moduleName)
 {
     swprintf_s(buffer, cchBufferSize, _u("Chakra GC: %d - %s"), GetCurrentProcessId(), moduleName);