mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
This commit is contained in:
parent
4e58f47a25
commit
ad4bbc6240
2 changed files with 0 additions and 6 deletions
|
|
@ -17,7 +17,6 @@
|
||||||
package sql
|
package sql
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"runtime/debug"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/88250/lute/ast"
|
"github.com/88250/lute/ast"
|
||||||
|
|
@ -46,7 +45,6 @@ var blockCache, _ = ristretto.NewCache(&ristretto.Config{
|
||||||
|
|
||||||
func ClearCache() {
|
func ClearCache() {
|
||||||
blockCache.Clear()
|
blockCache.Clear()
|
||||||
debug.FreeOSMemory()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func putBlockCache(block *Block) {
|
func putBlockCache(block *Block) {
|
||||||
|
|
|
||||||
|
|
@ -820,10 +820,6 @@ func heading(node *ast.Node) *ast.Node {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func DeleteBlockByIDs(tx *sql.Tx, ids []string) (err error) {
|
|
||||||
return deleteBlocksByIDs(tx, ids)
|
|
||||||
}
|
|
||||||
|
|
||||||
func deleteByBoxTx(tx *sql.Tx, box string) (err error) {
|
func deleteByBoxTx(tx *sql.Tx, box string) (err error) {
|
||||||
if err = deleteBlocksByBoxTx(tx, box); nil != err {
|
if err = deleteBlocksByBoxTx(tx, box); nil != err {
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue