cleanup: remove debug TRACE fprintf lines from defaults.c

This commit is contained in:
lkn 2026-06-06 09:01:09 +02:00
parent 90da92c83c
commit 709a8d76fc
1 changed files with 9 additions and 23 deletions

View File

@ -1182,7 +1182,6 @@ void wDefaultsCheckDomains(void* arg)
void wReadDefaults(WScreen * scr, WMPropList * new_dict)
{
fprintf(stderr, "TRACE: wReadDefaults enter\n");
WMPropList *plvalue, *old_value;
WDefaultEntry *entry;
unsigned int i;
@ -1194,7 +1193,6 @@ void wReadDefaults(WScreen * scr, WMPropList * new_dict)
needs_refresh = 0;
for (i = 0; i < wlengthof(optionList); i++) {
fprintf(stderr, "TR: r i=%d\n", i);
entry = &optionList[i];
if (new_dict)
@ -1663,20 +1661,14 @@ static WTexture *parse_texture(WScreen * scr, WMPropList * pl)
int nelem;
WTexture *texture = NULL;
fprintf(stderr, "TR: pT enter\n");
nelem = WMGetPropListItemCount(pl);
fprintf(stderr, "TR: pT nelem=%d\n", nelem);
if (nelem < 1)
return NULL;
fprintf(stderr, "TR: pT call get[0]\n");
elem = WMGetFromPLArray(pl, 0);
fprintf(stderr, "TR: pT got elem=%p\n", (void*)elem);
if (!elem || !WMIsPLString(elem))
return NULL;
fprintf(stderr, "TR: pT is-string\n");
val = WMGetFromPLString(elem);
fprintf(stderr, "TR: pT val=%s\n", val);
elem = WMGetFromPLArray(pl, 0);
if (!elem || !WMIsPLString(elem))
return NULL;
val = WMGetFromPLString(elem);
if (strcasecmp(val, "solid") == 0) {
WMColorRGB color;
@ -1983,10 +1975,8 @@ static int getTexture(WScreen * scr, WDefaultEntry * entry, WMPropList * value,
again:
if (!value)
return False;
fprintf(stderr, "TR: gT A\n");
Bool _is_arr = WMIsPLArray(value);
fprintf(stderr, "TR: gT B arr=%d\n", _is_arr);
if (!_is_arr) {
Bool _is_arr = WMIsPLArray(value);
if (!_is_arr) {
wwarning(_("Wrong option format for key \"%s\". Should be %s."), entry->key, "Texture");
if (changed == 0) {
value = entry->plvalue;
@ -2001,9 +1991,7 @@ static int getTexture(WScreen * scr, WDefaultEntry * entry, WMPropList * value,
return False;
}
fprintf(stderr, "TR: gT D key=%s\n", entry->key);
if (strcmp(entry->key, "WidgetColor") == 0 && !changed) {
if (strcmp(entry->key, "WidgetColor") == 0 && !changed) {
WMPropList *pl;
pl = WMGetFromPLArray(value, 0);
@ -2019,11 +2007,9 @@ static int getTexture(WScreen * scr, WDefaultEntry * entry, WMPropList * value,
}
}
fprintf(stderr, "TR: gT pre-parse\n");
texture = parse_texture(scr, value);
fprintf(stderr, "TR: gT post-parse\n");
texture = parse_texture(scr, value);
if (!texture) {
if (!texture) {
wwarning(_("Error in texture specification for key \"%s\""), entry->key);
if (changed == 0) {
value = entry->plvalue;