0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1059: MS-Windows: PlatformId() is called unnecessarily

Problem:    MS-Windows: PlatformId() is called unnecessarily.
Solution:   Remove calls to PlatformId(). (Ken Takata, closes #4170)
This commit is contained in:
Bram Moolenaar
2019-03-27 21:49:14 +01:00
parent 3a731ee0c2
commit 90d0cf69aa
2 changed files with 2 additions and 6 deletions

View File

@@ -6796,7 +6796,6 @@ mch_total_mem(int special UNUSED)
{ {
MEMORYSTATUSEX ms; MEMORYSTATUSEX ms;
PlatformId();
/* Need to use GlobalMemoryStatusEx() when there is more memory than /* Need to use GlobalMemoryStatusEx() when there is more memory than
* what fits in 32 bits. But it's not always available. */ * what fits in 32 bits. But it's not always available. */
ms.dwLength = sizeof(MEMORYSTATUSEX); ms.dwLength = sizeof(MEMORYSTATUSEX);
@@ -6982,8 +6981,6 @@ mch_rename(
char * char *
default_shell(void) default_shell(void)
{ {
PlatformId();
return "cmd.exe"; return "cmd.exe";
} }
@@ -7327,7 +7324,6 @@ copy_infostreams(char_u *from, char_u *to)
mch_copy_file_attribute(char_u *from, char_u *to) mch_copy_file_attribute(char_u *from, char_u *to)
{ {
/* File streams only work on Windows NT and later. */ /* File streams only work on Windows NT and later. */
PlatformId();
copy_infostreams(from, to); copy_infostreams(from, to);
return 0; return 0;
} }
@@ -7358,8 +7354,6 @@ myresetstkoflw(void)
DWORD nPageSize; DWORD nPageSize;
DWORD dummy; DWORD dummy;
PlatformId();
/* We need to know the system page size. */ /* We need to know the system page size. */
GetSystemInfo(&si); GetSystemInfo(&si);
nPageSize = si.dwPageSize; nPageSize = si.dwPageSize;

View File

@@ -775,6 +775,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1059,
/**/ /**/
1058, 1058,
/**/ /**/