Skip to content

Commit 5226375

Browse files
authored
Remove CopyFile, GetTempFileName from PAL (#113490)
* CopyFileW * CopyFileA * GetTempFileNameW * GetTempFileNameA * PAL_GetUserTempDirectoryW * Cleanup orphans * Remove copyJit * Delete JitInstance::reLoad
1 parent 289c443 commit 5226375

File tree

33 files changed

+9
-2844
lines changed

33 files changed

+9
-2844
lines changed

src/coreclr/dlls/mscordac/mscordac_unixexports.src

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ nativeStringResourceTable_mscorrc
6161
#memcpy_s
6262
#sscanf_s
6363

64-
#CopyFileW
6564
#CreateFileMappingW
6665
#CreateFileA
6766
#CreateFileW
@@ -101,7 +100,6 @@ nativeStringResourceTable_mscorrc
101100
#GetSystemInfo
102101
#GetSystemTime
103102
#GetSystemTimeAsFileTime
104-
#GetTempFileNameW
105103
#GetTempPathA
106104
#GetTempPathW
107105
#InitializeCriticalSection

src/coreclr/inc/longfilepathwrappers.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ CreateFileWrapper(
2525
_In_opt_ HANDLE hTemplateFile
2626
);
2727

28-
DWORD
29-
GetFileAttributesWrapper(
30-
_In_ LPCWSTR lpFileName
31-
);
32-
3328
BOOL
3429
GetFileAttributesExWrapper(
3530
_In_ LPCWSTR lpFileName,

src/coreclr/pal/inc/pal.h

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -521,20 +521,6 @@ SearchPathW(
521521

522522
#define SearchPath SearchPathW
523523

524-
PALIMPORT
525-
BOOL
526-
PALAPI
527-
CopyFileW(
528-
IN LPCWSTR lpExistingFileName,
529-
IN LPCWSTR lpNewFileName,
530-
IN BOOL bFailIfExists);
531-
532-
#ifdef UNICODE
533-
#define CopyFile CopyFileW
534-
#else
535-
#define CopyFile CopyFileA
536-
#endif
537-
538524
PALIMPORT
539525
DWORD
540526
PALAPI
@@ -712,21 +698,6 @@ GetFullPathNameW(
712698
#define GetFullPathName GetFullPathNameA
713699
#endif
714700

715-
PALIMPORT
716-
UINT
717-
PALAPI
718-
GetTempFileNameW(
719-
IN LPCWSTR lpPathName,
720-
IN LPCWSTR lpPrefixString,
721-
IN UINT uUnique,
722-
OUT LPWSTR lpTempFileName);
723-
724-
#ifdef UNICODE
725-
#define GetTempFileName GetTempFileNameW
726-
#else
727-
#define GetTempFileName GetTempFileNameA
728-
#endif
729-
730701
PALIMPORT
731702
DWORD
732703
PALAPI

src/coreclr/pal/inc/palprivate.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@ CreateFileA(
2020
IN DWORD dwFlagsAndAttributes,
2121
IN HANDLE hTemplateFile);
2222

23-
PALIMPORT
24-
BOOL
25-
PALAPI
26-
CopyFileA(
27-
IN LPCSTR lpExistingFileName,
28-
IN LPCSTR lpNewFileName,
29-
IN BOOL bFailIfExists);
30-
31-
3223
PALIMPORT
3324
BOOL
3425
PALAPI
@@ -78,15 +69,6 @@ GetFullPathNameA(
7869
OUT LPSTR lpBuffer,
7970
OUT LPSTR *lpFilePart);
8071

81-
PALIMPORT
82-
UINT
83-
PALAPI
84-
GetTempFileNameA(
85-
IN LPCSTR lpPathName,
86-
IN LPCSTR lpPrefixString,
87-
IN UINT uUnique,
88-
OUT LPSTR lpTempFileName);
89-
9072
PALIMPORT
9173
DWORD
9274
PALAPI

0 commit comments

Comments
 (0)