Remove PAL_unlink.
authorAditya Mandaleeka <adityam@microsoft.com>
Thu, 18 Feb 2016 00:37:12 +0000 (16:37 -0800)
committerAditya Mandaleeka <adityam@microsoft.com>
Thu, 18 Feb 2016 00:37:12 +0000 (16:37 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/d931b57022622db8e38b41c697eba730ec4f0c41

src/coreclr/src/pal/inc/pal.h
src/coreclr/src/pal/src/cruntime/filecrt.cpp
src/coreclr/src/pal/src/include/pal/file.h

index cb39a88..cf30711 100644 (file)
@@ -6044,7 +6044,6 @@ CoCreateGuid(OUT GUID * pguid);
 #define free          PAL_free
 #define mkstemp       PAL_mkstemp
 #define rename        PAL_rename
-#define unlink        PAL_unlink
 #define _strdup       PAL__strdup
 #define _getcwd       PAL__getcwd
 #define _open         PAL__open
index 253e918..e901a0d 100644 (file)
@@ -312,26 +312,6 @@ CorUnix::InternalOpen(
 
 
 /*++
-PAL_unlink
-
-Wrapper function for unlink.
-
-Input parameters:
-
-szPath = a symbolic link or a hard link to a file
-
-Return value:
-    Returns 0 on success and -1 on failure
---*/
-int
-__cdecl
-PAL_unlink(const char *szPath)
-{
-    return unlink(szPath);
-}
-
-
-/*++
 InternalDeleteFile
 
 Wrapper that does the same thing as unlink, except that
index f129a04..99d743d 100644 (file)
@@ -230,20 +230,6 @@ Return value:
 int __cdecl PAL_mkstemp(char *szNameTemplate);
 
 /*++
-PAL_unlink
-
-Calls unlink. 
-
-Input parameters:
-
-szPath = a symbolic link or a hard link to a file
-
-Return value:
-    Returns 0 on success and -1 on failure
---*/
-int __cdecl PAL_unlink(const char *szPath);
-
-/*++
 PAL_rename
 
 Calls rename