diff --git a/tests/test_deprecations.py b/tests/test_deprecations.py deleted file mode 100644 index 83d1fd8..0000000 --- a/tests/test_deprecations.py +++ /dev/null @@ -1,10 +0,0 @@ -"""Test that deprecations are announced appropriately.""" - -import pytest - -from tueplots import fontsizes - - -def test_fontsize_beamer_function_renamed(): - with pytest.deprecated_call(match="renamed"): - _ = fontsizes.beamer_moml() diff --git a/tueplots/fontsizes.py b/tueplots/fontsizes.py index bb6cb1c..f1e24a1 100644 --- a/tueplots/fontsizes.py +++ b/tueplots/fontsizes.py @@ -1,7 +1,5 @@ """Fontsize settings.""" -import warnings - def icml2022(*, default_smaller=1): r"""Font size for ICML 2022. @@ -107,19 +105,8 @@ def probnum2025(*, default_smaller=1): return _from_base(base=10 - default_smaller) -def beamer_moml(**kwargs): - """Font size for a beamer slide in aspectratio 16:9 with 10pt font. - - Deprecated in v0.0.16. Use 'fontsizes.beamer' instead. - """ - msg = "'fontsizes.beamer_moml' has been renamed to 'fontsizes.beamer' in v0.0.16." - msg += " The old API will be removed any time after January 1st, 2025." - warnings.warn(msg, DeprecationWarning) - return beamer(**kwargs) - - def beamer(*, default_smaller=1): - """Font size for a beamer slide (in aspectratio 16:9 with 10pt font).""" + """Font size for a beamer slide.""" return _from_base(base=10 - default_smaller)