diff options
author | Stephen Toub <stoub@microsoft.com> | 2019-02-15 11:05:07 -0500 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-02-15 08:05:07 -0800 |
commit | 6adc4c0b726ca1a77084e8a215e743d037ac5515 (patch) | |
tree | cf1bfbe61f301289aee8b01fddaab1c201b2b4fc | |
parent | 19ad3d12128e87ddc93baebf8bc0cb2c2bb16b5b (diff) | |
download | coreclr-6adc4c0b726ca1a77084e8a215e743d037ac5515.tar.gz coreclr-6adc4c0b726ca1a77084e8a215e743d037ac5515.tar.bz2 coreclr-6adc4c0b726ca1a77084e8a215e743d037ac5515.zip |
Remove CoreLib's src\Interop\Windows directory (#22622)
It contains only one file with an interop signature that's not actually being used. Deleting the dup.
-rw-r--r-- | src/System.Private.CoreLib/System.Private.CoreLib.csproj | 1 | ||||
-rw-r--r-- | src/System.Private.CoreLib/src/Interop/Windows/Kernel32/Interop.GetSystemDirectoryW.cs | 23 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/System.Private.CoreLib/System.Private.CoreLib.csproj index 1053e64ae5..831c38c8e6 100644 --- a/src/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -357,7 +357,6 @@ </ItemGroup> <ItemGroup Condition="'$(TargetsWindows)' == 'true'"> <Compile Include="$(BclSourcesRoot)\System\DateTime.Windows.cs" /> - <Compile Include="$(BclSourcesRoot)\Interop\Windows\Kernel32\Interop.GetSystemDirectoryW.cs" /> <Compile Include="$(BclSourcesRoot)\System\ApplicationModel.Windows.cs" /> <Compile Include="$(BclSourcesRoot)\System\Globalization\GlobalizationMode.Windows.cs" /> <Compile Include="$(BclSourcesRoot)\System\Threading\ClrThreadPoolBoundHandle.Windows.cs" /> 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 cf1b31d62c..0000000000 --- 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<char> buffer) - { - fixed (char* bufferPtr = &MemoryMarshal.GetReference(buffer)) - { - return GetSystemDirectoryW(bufferPtr, buffer.Length); - } - } - } -} |