chore: remove dead files resurrected by v1.0 launch commit - #6041
Merged
Calcium-Ion merged 1 commit intoJul 9, 2026
Merged
Conversation
controller/task_video.go and service/pre_consume_quota.go were already removed in ba25ba8 and 116004f (logic lives in service/task_polling.go and BillingSession now), then brought back as stale copies by a42b397. Both have zero callers. controller/swag_video.go is a leftover swag stub: the swaggo pipeline is gone and docs/openapi/relay.json already documents these routes.
Contributor
WalkthroughThis change removes three files entirely: Changes
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
xiaomingchen
pushed a commit
to xiaomingchen/new-api
that referenced
this pull request
Jul 10, 2026
…us#6041) controller/task_video.go and service/pre_consume_quota.go were already removed in ba25ba8 and 116004f (logic lives in service/task_polling.go and BillingSession now), then brought back as stale copies by a42b397. Both have zero callers. controller/swag_video.go is a leftover swag stub: the swaggo pipeline is gone and docs/openapi/relay.json already documents these routes.
Seraphli
pushed a commit
to Seraphli/new-api
that referenced
this pull request
Jul 10, 2026
…us#6041) controller/task_video.go and service/pre_consume_quota.go were already removed in ba25ba8 and 116004f (logic lives in service/task_polling.go and BillingSession now), then brought back as stale copies by a42b397. Both have zero callers. controller/swag_video.go is a leftover swag stub: the swaggo pipeline is gone and docs/openapi/relay.json already documents these routes.
lansine
pushed a commit
to evin-pubb/new-api-fork
that referenced
this pull request
Jul 14, 2026
…us#6041) controller/task_video.go and service/pre_consume_quota.go were already removed in ba25ba8 and 116004f (logic lives in service/task_polling.go and BillingSession now), then brought back as stale copies by a42b397. Both have zero callers. controller/swag_video.go is a leftover swag stub: the swaggo pipeline is gone and docs/openapi/relay.json already documents these routes.
zhaodechao2008
pushed a commit
to zhaodechao2008/new-api
that referenced
this pull request
Jul 27, 2026
…us#6041) controller/task_video.go and service/pre_consume_quota.go were already removed in ba25ba8 and 116004f (logic lives in service/task_polling.go and BillingSession now), then brought back as stale copies by 674f687. Both have zero callers. controller/swag_video.go is a leftover swag stub: the swaggo pipeline is gone and docs/openapi/relay.json already documents these routes.
330079598
pushed a commit
to 330079598/new-api
that referenced
this pull request
Aug 19, 2026
…us#6041) controller/task_video.go and service/pre_consume_quota.go were already removed in ba25ba8 and 116004f (logic lives in service/task_polling.go and BillingSession now), then brought back as stale copies by a42b397. Both have zero callers. controller/swag_video.go is a leftover swag stub: the swaggo pipeline is gone and docs/openapi/relay.json already documents these routes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 变更描述 / Description
删三个没有任何调用方的遗留文件,共 -542 行,无功能变化:
controller/task_video.go和service/pre_consume_quota.go:之前分别在 ba25ba8 和 116004f 里已经删过,v1.0 大提交 a42b397 带了回来🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
Bug fix,我已提交或关联对应 Issue,且不会将设计取舍、预期不一致或理解偏差直接归类为 bug。📸 运行证明 / Proof of Work
编译通过,业务正常