Skip to content

Commit 8ee193a

Browse files
committed
Remove unused to_camel_case
1 parent 79541a8 commit 8ee193a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

.scripts/gen_markdown_chapters.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ def to_title(name: str) -> str:
5656

5757
return " ".join(words)
5858

59-
60-
def to_camel_case(name: str) -> str:
61-
"""Return *name* converted to CamelCase without leading digits."""
62-
# Strip leading numeric prefixes like ``01_``
63-
name = re.sub(r"^\d+_?", "", name)
64-
parts = re.split(r"[_\-\s]+", name)
65-
return " ".join(word.capitalize() for word in parts if word)
66-
6759
def generate_aggregate(folder: Path, output_dir: Path) -> None:
6860
"""Create a single Markdown file aggregating all examples in *folder*."""
6961
examples = []

0 commit comments

Comments
 (0)