diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-12-08 18:52:28 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-12-08 18:52:28 +0000 |
| commit | 6ec63eae009a23ab31fc81f0e17e28e1fe7f4ee8 (patch) | |
| tree | 0487d84419d59ea04fdc3d81962c91db0e9cb763 /config.c | |
| parent | config: remove support for loading configuration from footrc (diff) | |
config: remove support for default.scrollback
Diffstat (limited to 'config.c')
| -rw-r--r-- | config.c | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -583,28 +583,6 @@ parse_section_main(const char *key, const char *value, struct config *conf, mbstowcs(conf->word_delimiters, value, chars + 1); } - else if (strcmp(key, "scrollback") == 0) { - LOG_WARN("deprecated: %s:%d: [default]: scrollback: use 'scrollback.lines' instead'", path, lineno); - - const char fmt[] = "%s:%d: \033[1mdefault.scrollback\033[21m, use \033[1mscrollback.lines\033[21m instead"; - char *text = xasprintf(fmt, path, lineno); - - struct user_notification deprecation = { - .kind = USER_NOTIFICATION_DEPRECATED, - .text = text, - }; - tll_push_back(conf->notifications, deprecation); - - unsigned long lines; - if (!str_to_ulong(value, 10, &lines)) { - LOG_AND_NOTIFY_ERR( - "%s:%d: [default]: scrollback: expected an integer, got '%s'", - path, lineno, value); - return false; - } - conf->scrollback.lines = lines; - } - else { LOG_AND_NOTIFY_ERR("%s:%u: [default]: %s: invalid key", path, lineno, key); return false; |
