]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Fix 移除无用代码
authorqydysky <qydysky@foxmail.com>
Sat, 18 Nov 2023 04:34:01 +0000 (12:34 +0800)
committerqydysky <qydysky@foxmail.com>
Sat, 18 Nov 2023 04:34:01 +0000 (12:34 +0800)
Reply/F.go
Reply/Reply.go

index ea537a56c6b62ecc359dd3baf2abe397750c63a6..66f389a71ec09c5125fb244798632cbd71229242 100644 (file)
@@ -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)
        }
index 1acf3bb595427b1f11cdce68d054cea97af487de..e58d5fdf5f95ca8d66d6eac794f978a5f0a2495b 100644 (file)
@@ -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)
                        }