From 86a7d7f52c49a0e0d996b8c9c250cf1f97e3e1a9 Mon Sep 17 00:00:00 2001 From: Erica Date: Thu, 9 Jun 2022 00:53:21 +0000 Subject: [PATCH] Removed deprecation notice --- bin/miniplayer | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/bin/miniplayer b/bin/miniplayer index 9b59d73..bd1df9d 100755 --- a/bin/miniplayer +++ b/bin/miniplayer @@ -68,24 +68,6 @@ default_bindings = {">": "next_track", if "keybindings" not in config.sections(): config["keybindings"] = default_bindings -# Ensure compatibility with older configs -deprecated_field_notice = ("The config option `{field}` under the `player` " - "section is deprecated and will be removed in the " - "future. Use the config option `{field}` under the " - "`art` section instead.") - -deprecated_fields_present = False -for field in ["music_directory", "image_method"]: - if config.has_option("player", field): - deprecated_fields_present = True - print(deprecated_field_notice.format(field=field)) - - if not config.has_option("art", field): - config["art"][field] = config["player"][field] - -if deprecated_fields_present: - input("(Press to continue) ...") - # Load configured keybindings keybindings = config["keybindings"]