Browse Source

:art: Clean code

Daniel 2 năm trước cách đây
mục cha
commit
8445fa73f2
1 tập tin đã thay đổi với 0 bổ sung5 xóa
  1. 0 5
      kernel/model/blockinfo.go

+ 0 - 5
kernel/model/blockinfo.go

@@ -124,11 +124,6 @@ func getBlockRefText(id string, tree *parse.Tree) (ret string) {
 		return
 	}
 
-	sqlBlock := sql.BuildBlockFromNode(node, tree)
-	if nil == sqlBlock {
-		return
-	}
-
 	ret = getNodeRefText(node)
 	ret = maxContent(ret, Conf.Editor.BlockRefDynamicAnchorTextMaxLen)
 	return