Remove unused _get_first(config, *keys) function
All callers were removed in "Update syntax for multiple inputs and allow
downloading" (40ae5758).
@@ -144,16 +144,3 @@ def _get_max_date_for_frequencies(wildcards):
return numeric_date(
date.today() - offset
)
-
-def _get_first(config, *keys):
- """
- Get the value of the first key in *keys* that exists in *config* and has a
- non-empty value.
-
- Raises a :class:`KeyError` if none of the *keys* exist with a suitable
- value.
- """
- for key in keys:
- if config.get(key) not in {"", None}:
- return config[key]
- raise KeyError(str(keys))
