Skip to content

Commit f5d41ca

Browse files
authored
Merge pull request #148 from braboj/codex/remove-to_camel_case-function
Remove unused to_camel_case
2 parents a378a79 + 8ee193a commit f5d41ca

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
@@ -54,14 +54,6 @@ def to_title(name: str) -> str:
5454

5555
return " ".join(words)
5656

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

0 commit comments

Comments
 (0)