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)
diff --git a/src/os_win32.c b/src/os_win32.c
index 7930957..81cf737 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -6796,7 +6796,6 @@
{
MEMORYSTATUSEX ms;
- PlatformId();
/* Need to use GlobalMemoryStatusEx() when there is more memory than
* what fits in 32 bits. But it's not always available. */
ms.dwLength = sizeof(MEMORYSTATUSEX);
@@ -6982,8 +6981,6 @@
char *
default_shell(void)
{
- PlatformId();
-
return "cmd.exe";
}
@@ -7327,7 +7324,6 @@
mch_copy_file_attribute(char_u *from, char_u *to)
{
/* File streams only work on Windows NT and later. */
- PlatformId();
copy_infostreams(from, to);
return 0;
}
@@ -7358,8 +7354,6 @@
DWORD nPageSize;
DWORD dummy;
- PlatformId();
-
/* We need to know the system page size. */
GetSystemInfo(&si);
nPageSize = si.dwPageSize;
diff --git a/src/version.c b/src/version.c
index 541a02f..c7fcb59 100644
--- a/src/version.c
+++ b/src/version.c
@@ -776,6 +776,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1059,
+/**/
1058,
/**/
1057,