Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions cmyt/_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import warnings
from collections.abc import Iterable, Sequence
from typing import TYPE_CHECKING, Any, Final, Literal, Optional

Expand Down Expand Up @@ -41,25 +40,6 @@ def prefix_name(name: str) -> str:
return name


def unprefix_name(name: str) -> str:
"""
Examples
--------
>>> unprefix_name("cmyt.arbre")
'arbre'
>>> unprefix_name("arbre")
'arbre'
"""
warnings.warn(
"cmyt._utils.unprefix_name is deprecated since version 1.4.0 "
"and will be removed in a future version. "
"Instead, use name.removeprefix('cmyt.')",
category=DeprecationWarning,
stacklevel=2,
)
return name.removeprefix(_CMYT_PREFIX)


def register_colormap(
name: str,
*,
Expand Down