mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-31 07:11:09 -04:00
Merge branch 'remove-unreachable'
This commit is contained in:
commit
c683116f8a
1 changed files with 4 additions and 27 deletions
31
config.c
31
config.c
|
|
@ -1014,8 +1014,6 @@ parse_section_main(struct context *ctx)
|
||||||
LOG_CONTEXTUAL_ERR("not a valid option: %s", key);
|
LOG_CONTEXTUAL_ERR("not a valid option: %s", key);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
UNREACHABLE();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
@ -2267,29 +2265,10 @@ parse_section_tweak(struct context *ctx)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (mode) {
|
xassert(0 <= mode && mode <= 3);
|
||||||
case 0:
|
conf->tweak.render_timer_osd = mode == 1 || mode == 3;
|
||||||
conf->tweak.render_timer_osd = false;
|
conf->tweak.render_timer_log = mode == 2 || mode == 3;
|
||||||
conf->tweak.render_timer_log = false;
|
return true;
|
||||||
return true;
|
|
||||||
|
|
||||||
case 1:
|
|
||||||
conf->tweak.render_timer_osd = true;
|
|
||||||
conf->tweak.render_timer_log = false;
|
|
||||||
return true;
|
|
||||||
|
|
||||||
case 2:
|
|
||||||
conf->tweak.render_timer_osd = false;
|
|
||||||
conf->tweak.render_timer_log = true;
|
|
||||||
return true;
|
|
||||||
|
|
||||||
case 3:
|
|
||||||
conf->tweak.render_timer_osd = true;
|
|
||||||
conf->tweak.render_timer_log = true;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
UNREACHABLE();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (strcmp(key, "delayed-render-lower") == 0) {
|
else if (strcmp(key, "delayed-render-lower") == 0) {
|
||||||
|
|
@ -2342,8 +2321,6 @@ parse_section_tweak(struct context *ctx)
|
||||||
LOG_CONTEXTUAL_ERR("not a valid option: %s", key);
|
LOG_CONTEXTUAL_ERR("not a valid option: %s", key);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
UNREACHABLE();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue