Skip to content

Commit 78c7e27

Browse files
committed
patch 7.4.2253
Problem: Check for Windows 3.1 will always return false. (Christian Brabandt) Solution: Remove the dead code.
1 parent 424d74b commit 78c7e27

File tree

7 files changed

+3
-32
lines changed

7 files changed

+3
-32
lines changed

src/evalfunc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5989,10 +5989,6 @@ f_has(typval_T *argvars, typval_T *rettv)
59895989
#ifdef FEAT_GUI
59905990
else if (STRICMP(name, "gui_running") == 0)
59915991
n = (gui.in_use || gui.starting);
5992-
# ifdef FEAT_GUI_W32
5993-
else if (STRICMP(name, "gui_win32s") == 0)
5994-
n = gui_is_win32s();
5995-
# endif
59965992
# ifdef FEAT_BROWSE
59975993
else if (STRICMP(name, "browse") == 0)
59985994
n = gui.in_use; /* gui_mch_browse() works when GUI is running */

src/ex_cmds.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1927,11 +1927,7 @@ write_viminfo(char_u *file, int forceit)
19271927
#ifdef UNIX
19281928
shortname,
19291929
#else
1930-
# ifdef FEAT_GUI_W32
1931-
gui_is_win32s(),
1932-
# else
19331930
FALSE,
1934-
# endif
19351931
#endif
19361932
fname,
19371933
#ifdef VMS

src/gui_w32.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,15 +4533,6 @@ is_winnt_3(void)
45334533
|| (os_version.dwPlatformId == VER_PLATFORM_WIN32s));
45344534
}
45354535

4536-
/*
4537-
* Return TRUE when running under Win32s.
4538-
*/
4539-
int
4540-
gui_is_win32s(void)
4541-
{
4542-
return (os_version.dwPlatformId == VER_PLATFORM_WIN32s);
4543-
}
4544-
45454536
#ifdef FEAT_MENU
45464537
/*
45474538
* Figure out how high the menu bar is at the moment.

src/option.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3294,16 +3294,6 @@ set_init_1(void)
32943294
}
32953295
}
32963296

3297-
#ifdef FEAT_GUI_W32
3298-
/* force 'shortname' for Win32s */
3299-
if (gui_is_win32s())
3300-
{
3301-
opt_idx = findoption((char_u *)"shortname");
3302-
if (opt_idx >= 0)
3303-
options[opt_idx].def_val[VI_DEFAULT] = (char_u *)TRUE;
3304-
}
3305-
#endif
3306-
33073297
#ifdef FEAT_SEARCHPATH
33083298
{
33093299
char_u *cdpath;

src/os_win32.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,6 @@ mch_init(void)
20622062
Columns = 80;
20632063

20642064
/* Look for 'vimrun' */
2065-
if (!gui_is_win32s())
20662065
{
20672066
char_u vimrun_location[_MAX_PATH + 4];
20682067

@@ -4142,7 +4141,7 @@ mch_system_classic(char *cmd, int options)
41424141
* Win32s either as it stops the synchronous spawn workaround working.
41434142
* Don't activate the window to keep focus on Vim.
41444143
*/
4145-
if ((options & SHELL_DOOUT) && !mch_windows95() && !gui_is_win32s())
4144+
if ((options & SHELL_DOOUT) && !mch_windows95())
41464145
si.wShowWindow = SW_SHOWMINNOACTIVE;
41474146
else
41484147
si.wShowWindow = SW_SHOWNORMAL;

src/proto/gui_w32.pro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ void mch_set_mouse_shape(int shape);
6262
char_u *gui_mch_browsedir(char_u *title, char_u *initdir);
6363
char_u *gui_mch_browse(int saving, char_u *title, char_u *dflt, char_u *ext, char_u *initdir, char_u *filter);
6464
int get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree);
65-
int gui_is_win32s(void);
6665
void gui_mch_set_parent(char *title);
6766
void gui_mch_prepare(int *argc, char **argv);
6867
int gui_mch_init(void);

src/version.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2253,
766768
/**/
767769
2252,
768770
/**/
@@ -5419,8 +5421,6 @@ list_version(void)
54195421
MSG_PUTS(_("\nMS-Windows 32-bit GUI version"));
54205422
# endif
54215423
# endif
5422-
if (gui_is_win32s())
5423-
MSG_PUTS(_(" in Win32s mode"));
54245424
# ifdef FEAT_OLE
54255425
MSG_PUTS(_(" with OLE support"));
54265426
# endif

0 commit comments

Comments
 (0)