From: qydysky Date: Sat, 18 Nov 2023 04:34:01 +0000 (+0800) Subject: Fix 移除无用代码 X-Git-Tag: v0.11.6~5 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=ee6bece25d41d148c303e743d2ab92815c795ac3;p=bili_danmu%2F.git Fix 移除无用代码 --- diff --git a/Reply/F.go b/Reply/F.go index ea537a5..66f389a 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -1662,8 +1662,6 @@ func init() { w.WriteHeader(http.StatusNotFound) return } - - type empty struct{} if e := danmuXml.DanmuXml.Run(context.Background(), &v); e != nil { msglog.L(`E: `, e) } @@ -1703,7 +1701,6 @@ func StartRecDanmu(ctx context.Context, filePath string) { f.L(`I: `, `结束`) // 弹幕录制结束 - type empty struct{} if e := danmuXml.DanmuXml.Run(context.Background(), &filePath); e != nil { msglog.L(`E: `, e) } diff --git a/Reply/Reply.go b/Reply/Reply.go index 1acf3bb..e58d5fd 100644 --- a/Reply/Reply.go +++ b/Reply/Reply.go @@ -772,7 +772,6 @@ func (replyF) preparing(s string) { var roomId, _ = strconv.Atoi(type_item.Roomid) StreamOStop(roomId) // 下播总结 - type empty struct{} if e := liveOver.Sumup.Run(context.Background(), c.C); e != nil { msglog.L(`E: `, e) }