From 6f3c3f2f938e048b041453a8b4041f7a193974c3 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Tue, 12 Oct 2021 15:01:31 -0700 Subject: [PATCH] Remove the unused 'FollowSymLink' function --- src/System.Management.Automation/CoreCLR/CorePsPlatform.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs b/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs index ce37ae12d17..859aa8ecfe3 100644 --- a/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs +++ b/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs @@ -1134,10 +1134,6 @@ internal static extern int CreateSymLink([MarshalAs(UnmanagedType.LPStr)] string internal static extern int CreateHardLink([MarshalAs(UnmanagedType.LPStr)] string filePath, [MarshalAs(UnmanagedType.LPStr)] string target); - [DllImport(psLib, CharSet = CharSet.Ansi, SetLastError = true)] - [return: MarshalAs(UnmanagedType.LPStr)] - internal static extern string FollowSymLink([MarshalAs(UnmanagedType.LPStr)] string filePath); - [DllImport(psLib, CharSet = CharSet.Ansi, SetLastError = true)] [return: MarshalAs(UnmanagedType.LPStr)] internal static extern string GetUserFromPid(int pid);