Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Clean code

Danielc3d2a7b5423b
diff --git a/kernel/treenode/tree.go b/kernel/treenode/tree.go
index 154a37f6ff..c3e5a1dc01 100644
--- a/kernel/treenode/tree.go
+++ b/kernel/treenode/tree.go
@@ -33,17 +33,6 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
-func StatTree(tree *parse.Tree) (ret *util.BlockStatResult) {
- runeCnt, wordCnt, linkCnt, imgCnt, refCnt := tree.Root.Stat()
- return &util.BlockStatResult{
- RuneCount: runeCnt,
- WordCount: wordCnt,
- LinkCount: linkCnt,
- ImageCount: imgCnt,
- RefCount: refCnt,
- }
-}
-
func NodeHash(node *ast.Node, tree *parse.Tree, luteEngine *lute.Lute) string {
ialArray := node.KramdownIAL
sort.Slice(ialArray, func(i, j int) bool {