diff --git a/src/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/System.Private.CoreLib/System.Private.CoreLib.csproj index 1053e64ae5ef..831c38c8e6a5 100644 --- a/src/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -357,7 +357,6 @@ - diff --git a/src/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemDirectoryW.cs b/src/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemDirectoryW.cs deleted file mode 100644 index cf1b31d62c0c..000000000000 --- a/src/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemDirectoryW.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. - -using System; -using System.Runtime.InteropServices; - -internal static partial class Interop -{ - internal static partial class Kernel32 - { - [DllImport(Libraries.Kernel32, CharSet = CharSet.Unicode, SetLastError = true)] - private static extern unsafe int GetSystemDirectoryW(char* lpBuffer, int uSize); - - internal static unsafe int GetSystemDirectoryW(Span buffer) - { - fixed (char* bufferPtr = &MemoryMarshal.GetReference(buffer)) - { - return GetSystemDirectoryW(bufferPtr, buffer.Length); - } - } - } -}