diff --git a/src/coreclr/md/compiler/emit.cpp b/src/coreclr/md/compiler/emit.cpp index 6252deae8ff34..40fd1f68bf2aa 100644 --- a/src/coreclr/md/compiler/emit.cpp +++ b/src/coreclr/md/compiler/emit.cpp @@ -1952,19 +1952,11 @@ STDMETHODIMP RegMeta::DefineDocument( // S_OK or error. partsIndexesCount++; } char* context; -#ifdef HOST_WINDOWS stringToken = strtok_s(docName, (const char*)delim, &context); -#else - stringToken = strtok_r(docName, (const char*)delim, &context); -#endif while (stringToken != NULL) { IfFailGo(m_pStgdb->m_MiniMd.m_BlobHeap.AddBlob(MetaData::DataBlob((BYTE*)stringToken, (ULONG)strlen(stringToken)), partsIndexesPtr++)); -#ifdef HOST_WINDOWS stringToken = strtok_s(NULL, (const char*)delim, &context); -#else - stringToken = strtok_r(NULL, (const char*)delim, &context); -#endif partsIndexesCount++; }