fix: 去除无效代码

This commit is contained in:
Mmx233
2022-03-02 22:54:45 +08:00
parent a99cdfabd0
commit 525c063cf0

View File

@@ -5,7 +5,6 @@ import (
"github.com/Mmx233/tool"
"log"
"os"
"runtime"
"strings"
"time"
)
@@ -82,11 +81,3 @@ func (c *loG) Warn(a ...interface{}) {
func (c *loG) Fatal(a ...interface{}) {
c.print(true, append([]interface{}{"[FATAL] "}, a...)...)
}
func (c *loG) CatchRecover() {
if e := recover(); e != nil {
c.Debug("发生恐慌")
var buf [4096]byte
c.Fatal(e, "\n", string(buf[:runtime.Stack(buf[:], false)]))
}
}