1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

create_stdcmap is never used

The create_stdcmap variable is never set, so can be removed.

This patch don't update the translation .po files!
This commit is contained in:
Rodolfo García Peñas (kix)
2012-11-18 23:07:46 +01:00
committed by Carlos R. Mafra
parent 8b6e96ab74
commit 4111f336d0
3 changed files with 2 additions and 8 deletions

View File

@@ -439,7 +439,6 @@ typedef struct WPreferences {
unsigned int noupdates:1; /* don't require ~/GNUstep (-static) */ unsigned int noupdates:1; /* don't require ~/GNUstep (-static) */
unsigned int noautolaunch:1; /* don't autolaunch apps */ unsigned int noautolaunch:1; /* don't autolaunch apps */
unsigned int norestore:1; /* don't restore session */ unsigned int norestore:1; /* don't restore session */
unsigned int create_stdcmap:1; /* create std colormap */
#ifndef HAVE_INOTIFY #ifndef HAVE_INOTIFY
unsigned int nopolling:1; /* don't poll the defaults database for changes */ unsigned int nopolling:1; /* don't poll the defaults database for changes */
#endif #endif

View File

@@ -498,7 +498,6 @@ static void print_help(void)
puts(_(" --locale locale locale to use")); puts(_(" --locale locale locale to use"));
puts(_(" --create-stdcmap create the standard colormap hint in PseudoColor visuals"));
puts(_(" --visual-id visualid visual id of visual to use")); puts(_(" --visual-id visualid visual id of visual to use"));
puts(_(" --static do not update or save configurations")); puts(_(" --static do not update or save configurations"));
#ifndef HAVE_INOTIFY #ifndef HAVE_INOTIFY

View File

@@ -596,12 +596,8 @@ WScreen *wScreenInit(int screen_number)
if (rattr.colors_per_channel < 2) if (rattr.colors_per_channel < 2)
rattr.colors_per_channel = 2; rattr.colors_per_channel = 2;
/* will only be accounted for in PseudoColor */ /* Use standard colormap */
if (wPreferences.flags.create_stdcmap) { rattr.standard_colormap_mode = RUseStdColormap;
rattr.standard_colormap_mode = RCreateStdColormap;
} else {
rattr.standard_colormap_mode = RUseStdColormap;
}
if (getWVisualID(screen_number) >= 0) { if (getWVisualID(screen_number) >= 0) {
rattr.flags |= RC_VisualID; rattr.flags |= RC_VisualID;