From bed0965c6e45be19dc910996132b902c19834d67 Mon Sep 17 00:00:00 2001 From: Dan Redding <125183946+dangotbanned@users.noreply.github.com> Date: Sat, 13 Jul 2024 18:17:49 +0100 Subject: [PATCH] refactor: remove dead `_get_channels_mapping` code (#3467) --- altair/vegalite/v5/api.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/altair/vegalite/v5/api.py b/altair/vegalite/v5/api.py index 843315fa7..23138613f 100644 --- a/altair/vegalite/v5/api.py +++ b/altair/vegalite/v5/api.py @@ -232,15 +232,6 @@ def to_dict(self, *args, **kwargs) -> dict: TOPLEVEL_ONLY_KEYS = {"background", "config", "autosize", "padding", "$schema"} -def _get_channels_mapping() -> dict[type[SchemaBase], str]: - mapping: dict[type[SchemaBase], str] = {} - for attr in dir(channels): - cls = getattr(channels, attr) - if isinstance(cls, type) and issubclass(cls, core.SchemaBase): - mapping[cls] = attr.replace("Value", "").lower() - return mapping - - # ------------------------------------------------------------------------- # Tools for working with parameters class Parameter(_expr_core.OperatorMixin):