An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:fire: Remove dead code RemoveDynamicRefTextsByDefID and ClearDynamicRefTexts #18034
Daniel72c7e18290b7
diff --git a/kernel/treenode/node.go b/kernel/treenode/node.goindex a2635418f1..076bce7b2d 100644--- a/kernel/treenode/node.go+++ b/kernel/treenode/node.go@@ -512,18 +512,6 @@ func RemoveDynamicRefTexts(boxID string) {})}-func RemoveDynamicRefTextsByDefID(defBlockID string) {- DynamicRefTexts.Delete(defBlockID)-}--// ClearDynamicRefTexts 清空所有动态引用锚文本缓存。-func ClearDynamicRefTexts() {- DynamicRefTexts.Range(func(k, _ any) bool {- DynamicRefTexts.Delete(k)- return true- })-}-func IsChartCodeBlockCode(code *ast.Node) bool {if nil == code.Previous || ast.NodeCodeBlockFenceInfoMarker != code.Previous.Type || 1 > len(code.Previous.CodeBlockInfo) {return false