mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-11 04:27:49 -05: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);
|
||||
return false;
|
||||
}
|
||||
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
@ -2267,29 +2265,10 @@ parse_section_tweak(struct context *ctx)
|
|||
return false;
|
||||
}
|
||||
|
||||
switch (mode) {
|
||||
case 0:
|
||||
conf->tweak.render_timer_osd = false;
|
||||
conf->tweak.render_timer_log = false;
|
||||
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();
|
||||
xassert(0 <= mode && mode <= 3);
|
||||
conf->tweak.render_timer_osd = mode == 1 || mode == 3;
|
||||
conf->tweak.render_timer_log = mode == 2 || mode == 3;
|
||||
return true;
|
||||
}
|
||||
|
||||
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);
|
||||
return false;
|
||||
}
|
||||
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue