This commit is contained in:
Liang Ding 2023-02-21 13:21:14 +08:00
parent 4e58f47a25
commit ad4bbc6240
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 0 additions and 6 deletions

View file

@ -17,7 +17,6 @@
package sql
import (
"runtime/debug"
"time"
"github.com/88250/lute/ast"
@ -46,7 +45,6 @@ var blockCache, _ = ristretto.NewCache(&ristretto.Config{
func ClearCache() {
blockCache.Clear()
debug.FreeOSMemory()
}
func putBlockCache(block *Block) {

View file

@ -820,10 +820,6 @@ func heading(node *ast.Node) *ast.Node {
return nil
}
func DeleteBlockByIDs(tx *sql.Tx, ids []string) (err error) {
return deleteBlocksByIDs(tx, ids)
}
func deleteByBoxTx(tx *sql.Tx, box string) (err error) {
if err = deleteBlocksByBoxTx(tx, box); nil != err {
return