From 35db7dc2ad5717f4114574bcdd468da54dc36241 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Thu, 11 Oct 2018 00:42:55 +0200 Subject: [PATCH] Kill FontManager.update_fonts. It's been listed as a TODO since the first ever commit in the git log (e34a333), has always raised NotImplementedError, and nowadays the suggested action is always to just fully regenerate the font cache anyways. --- lib/matplotlib/font_manager.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/matplotlib/font_manager.py b/lib/matplotlib/font_manager.py index 6f8dfe315cbd..5fa710cac807 100644 --- a/lib/matplotlib/font_manager.py +++ b/lib/matplotlib/font_manager.py @@ -29,7 +29,6 @@ # - default font algorithm needs improvement and testing # - setWeights function needs improvement # - 'light' is an invalid weight value, remove it. -# - update_fonts not implemented from functools import lru_cache import json @@ -1018,14 +1017,6 @@ def set_default_weight(self, weight): """ self.__default_weight = weight - def update_fonts(self, filenames): - """ - Update the font dictionary with new font files. - Currently not implemented. - """ - # !!!! Needs implementing - raise NotImplementedError - # Each of the scoring functions below should return a value between # 0.0 (perfect match) and 1.0 (terrible match) def score_family(self, families, family2):