]> granicus.if.org Git - vim/commitdiff
patch 8.1.1059: MS-Windows: PlatformId() is called unnecessarily v8.1.1059
authorBram Moolenaar <Bram@vim.org>
Wed, 27 Mar 2019 20:49:14 +0000 (21:49 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 27 Mar 2019 20:49:14 +0000 (21:49 +0100)
Problem:    MS-Windows: PlatformId() is called unnecessarily.
Solution:   Remove calls to PlatformId(). (Ken Takata, closes #4170)

src/os_win32.c
src/version.c

index 7930957ad3306b9d95a0df3a86e168ef644abc01..81cf737827d2418af582dc5c762710f54c578e1d 100644 (file)
@@ -6796,7 +6796,6 @@ mch_total_mem(int special UNUSED)
 {
     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 @@ mch_rename(
     char *
 default_shell(void)
 {
-    PlatformId();
-
     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)
 {
     /* File streams only work on Windows NT and later. */
-    PlatformId();
     copy_infostreams(from, to);
     return 0;
 }
@@ -7358,8 +7354,6 @@ myresetstkoflw(void)
     DWORD      nPageSize;
     DWORD      dummy;
 
-    PlatformId();
-
     /* We need to know the system page size. */
     GetSystemInfo(&si);
     nPageSize = si.dwPageSize;
index 541a02f830a9a8dea9861e2f12e0410b3508dd62..c7fcb590fb6c736e71d45acd4d01a9fbf3d809d9 100644 (file)
@@ -775,6 +775,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1059,
 /**/
     1058,
 /**/