refactor(docs-i18n): remove unreachable chunk helpers · openclaw/openclaw@01d212b
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -599,10 +599,6 @@ func splitDocBlockSections(block string) []string {
|
599 | 599 | return sections |
600 | 600 | } |
601 | 601 | |
602 | | -func splitPureFencedDocSection(block string, maxBytes, promptBudget int) ([][]string, bool) { |
603 | | -return splitPureFencedDocSectionWithMode(block, maxBytes, promptBudget, false) |
604 | | -} |
605 | | - |
606 | 602 | func splitPureFencedDocSectionWithMode(block string, maxBytes, promptBudget int, force bool) ([][]string, bool) { |
607 | 603 | lines := strings.SplitAfter(block, "\n") |
608 | 604 | if len(lines) < 2 { |
@@ -636,10 +632,6 @@ func splitPureFencedDocSectionWithMode(block string, maxBytes, promptBudget int,
|
636 | 632 | return groups, true |
637 | 633 | } |
638 | 634 | |
639 | | -func splitPlainDocSection(text string, maxBytes, promptBudget int) ([][]string, bool) { |
640 | | -return splitPlainDocSectionWithMode(text, maxBytes, promptBudget, false) |
641 | | -} |
642 | | - |
643 | 635 | func splitPlainDocSectionWithMode(text string, maxBytes, promptBudget int, force bool) ([][]string, bool) { |
644 | 636 | if maxBytes <= 0 { |
645 | 637 | maxBytes = len(text) |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -80,10 +80,6 @@ func processFileDoc(ctx context.Context, translator docsTranslator, docsRoot, fi
|
80 | 80 | return false, outputPath, os.WriteFile(outputPath, []byte(output), 0o644) |
81 | 81 | } |
82 | 82 | |
83 | | -func formatTaggedDocument(frontMatter, body string) string { |
84 | | -return fmt.Sprintf("%s\n%s\n%s\n%s\n%s\n%s", frontmatterTagStart, frontMatter, frontmatterTagEnd, bodyTagStart, body, bodyTagEnd) |
85 | | -} |
86 | | - |
87 | 83 | func parseTaggedDocument(text string) (string, string, error) { |
88 | 84 | frontStart := strings.Index(text, frontmatterTagStart) |
89 | 85 | if frontStart == -1 { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。