patch 7.4.2253 v7.4.2253
authorBram Moolenaar <Bram@vim.org>
Thu, 25 Aug 2016 21:19:29 +0000 (23:19 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 25 Aug 2016 21:19:29 +0000 (23:19 +0200)
Problem:    Check for Windows 3.1 will always return false.  (Christian
            Brabandt)
Solution:   Remove the dead code.

src/evalfunc.c
src/ex_cmds.c
src/gui_w32.c
src/option.c
src/os_win32.c
src/proto/gui_w32.pro
src/version.c

index 1b54b7ead25796196bc60a10ebeb9dbbcac79716..88392305e1f89cab8ee5ffab1406a0c089fbeedf 100644 (file)
@@ -5989,10 +5989,6 @@ f_has(typval_T *argvars, typval_T *rettv)
 #ifdef FEAT_GUI
        else if (STRICMP(name, "gui_running") == 0)
            n = (gui.in_use || gui.starting);
-# ifdef FEAT_GUI_W32
-       else if (STRICMP(name, "gui_win32s") == 0)
-           n = gui_is_win32s();
-# endif
 # ifdef FEAT_BROWSE
        else if (STRICMP(name, "browse") == 0)
            n = gui.in_use;     /* gui_mch_browse() works when GUI is running */
index d690f39a2b7faccfb41f6152e92d1df779796f40..72d480cc973dfb1bf5a3b3a15545b81716908944 100644 (file)
@@ -1927,11 +1927,7 @@ write_viminfo(char_u *file, int forceit)
 #ifdef UNIX
                                    shortname,
 #else
-# ifdef FEAT_GUI_W32
-                                   gui_is_win32s(),
-# else
                                    FALSE,
-# endif
 #endif
                                    fname,
 #ifdef VMS
index 773454feffbf40188ffdd12d2d973104050a1072..0979d677e05186c9b28321c05a5153a6cc5f2f06 100644 (file)
@@ -4533,15 +4533,6 @@ is_winnt_3(void)
            || (os_version.dwPlatformId == VER_PLATFORM_WIN32s));
 }
 
-/*
- * Return TRUE when running under Win32s.
- */
-    int
-gui_is_win32s(void)
-{
-    return (os_version.dwPlatformId == VER_PLATFORM_WIN32s);
-}
-
 #ifdef FEAT_MENU
 /*
  * Figure out how high the menu bar is at the moment.
index 9f1aaf1d152b8b9ddc46aa60ee6c637cd47d4f24..a0665f37b2b353632f0176d3f1aa817206396f37 100644 (file)
@@ -3294,16 +3294,6 @@ set_init_1(void)
        }
     }
 
-#ifdef FEAT_GUI_W32
-    /* force 'shortname' for Win32s */
-    if (gui_is_win32s())
-    {
-       opt_idx = findoption((char_u *)"shortname");
-       if (opt_idx >= 0)
-           options[opt_idx].def_val[VI_DEFAULT] = (char_u *)TRUE;
-    }
-#endif
-
 #ifdef FEAT_SEARCHPATH
     {
        char_u  *cdpath;
index 97a8cca9ebb5dbabe0a6608e0cedc1a4f40e8009..2773953a6bb273448e5388085d84bca4ecd5ab52 100644 (file)
@@ -2062,7 +2062,6 @@ mch_init(void)
     Columns = 80;
 
     /* Look for 'vimrun' */
-    if (!gui_is_win32s())
     {
        char_u vimrun_location[_MAX_PATH + 4];
 
@@ -4142,7 +4141,7 @@ mch_system_classic(char *cmd, int options)
      * Win32s either as it stops the synchronous spawn workaround working.
      * Don't activate the window to keep focus on Vim.
      */
-    if ((options & SHELL_DOOUT) && !mch_windows95() && !gui_is_win32s())
+    if ((options & SHELL_DOOUT) && !mch_windows95())
        si.wShowWindow = SW_SHOWMINNOACTIVE;
     else
        si.wShowWindow = SW_SHOWNORMAL;
index 2eccf747fa82a28e742fada319ccc20a50ae6eb5..3c99f97e5e45be82e6455af889269168aab0c788 100644 (file)
@@ -62,7 +62,6 @@ void mch_set_mouse_shape(int shape);
 char_u *gui_mch_browsedir(char_u *title, char_u *initdir);
 char_u *gui_mch_browse(int saving, char_u *title, char_u *dflt, char_u *ext, char_u *initdir, char_u *filter);
 int get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree);
-int gui_is_win32s(void);
 void gui_mch_set_parent(char *title);
 void gui_mch_prepare(int *argc, char **argv);
 int gui_mch_init(void);
index 4fbbb821f13b99d20bfe3ac12ae7be4f79238bb2..a799c6dd8d7d71751c12e78b56afa9cdef28df54 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2253,
 /**/
     2252,
 /**/
@@ -5419,8 +5421,6 @@ list_version(void)
     MSG_PUTS(_("\nMS-Windows 32-bit GUI version"));
 #   endif
 #  endif
-    if (gui_is_win32s())
-       MSG_PUTS(_(" in Win32s mode"));
 # ifdef FEAT_OLE
     MSG_PUTS(_(" with OLE support"));
 # endif