From 1586fb5716abf88ffab4542bb2ce8aff128d2306 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 6 Sep 2021 07:54:41 +0200 Subject: [PATCH] Remove now-unused rcParams _deprecated entries. These entries have already been removed (with the corresponding API change documentation). Also remove the now-unused _all_deprecated. --- lib/matplotlib/__init__.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/lib/matplotlib/__init__.py b/lib/matplotlib/__init__.py index ac84e82c30f6..8a6f9f62c378 100644 --- a/lib/matplotlib/__init__.py +++ b/lib/matplotlib/__init__.py @@ -575,24 +575,13 @@ def gen_candidates(): # rcParams deprecated and automatically mapped to another key. # Values are tuples of (version, new_name, f_old2new, f_new2old). _deprecated_map = {} - # rcParams deprecated; some can manually be mapped to another key. # Values are tuples of (version, new_name_or_None). -_deprecated_ignore_map = { - 'mpl_toolkits.legacy_colorbar': ('3.4', None), -} - +_deprecated_ignore_map = {} # rcParams deprecated; can use None to suppress warnings; remain actually -# listed in the rcParams (not included in _all_deprecated). +# listed in the rcParams. # Values are tuples of (version,) -_deprecated_remain_as_none = { - 'animation.avconv_path': ('3.3',), - 'animation.avconv_args': ('3.3',), - 'animation.html_args': ('3.3',), -} - - -_all_deprecated = {*_deprecated_map, *_deprecated_ignore_map} +_deprecated_remain_as_none = {} @docstring.Substitution(