gitea/models/git
silverwind aba87285f0
Remove dead code identified by `deadcode` tool (#37271)
Ran [`deadcode`](https://pkg.go.dev/golang.org/x/tools/cmd/deadcode)
(`-test ./...`) to find functions, methods and error types unreachable
from any call path (including tests), and removed the truly-dead ones.

Co-authored-by: Claude (Opus 4.7) <noreply@anthropic.com>
2026-04-20 07:52:48 +00:00
..
branch.go Delete non-exist branch should return 404 (#36694) 2026-03-02 11:08:16 -08:00
branch_list.go Remove dead code identified by `deadcode` tool (#37271) 2026-04-20 07:52:48 +00:00
branch_test.go Delete non-exist branch should return 404 (#36694) 2026-03-02 11:08:16 -08:00
commit_status.go Add quick approve button on PR page (#35678) 2025-10-20 18:46:37 +08:00
commit_status_summary.go Keeping consistent between UI and API about combined commit status state and fix some bugs (#34562) 2025-06-09 04:05:33 +00:00
commit_status_test.go Update Combine method to treat warnings as failures and adjust tests (#37048) 2026-03-31 17:22:18 +00:00
lfs.go Fix bug when do LFS GC (#36500) 2026-02-12 15:27:19 -08:00
lfs_lock.go Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
lfs_lock_list.go Show lock owner instead of repo owner on LFS setting page (#31788) 2024-08-11 14:48:20 +00:00
lfs_lock_test.go LFS locks must belong to the intended repo (#36344) 2026-01-11 12:57:58 +02:00
lfs_test.go Fix bug when do LFS GC (#36500) 2026-02-12 15:27:19 -08:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
protected_branch.go Fix issue label deletion with Actions tokens (#37013) 2026-03-29 09:21:14 +00:00
protected_branch_list.go Replace gobwas/glob package (#35478) 2025-09-13 18:01:00 +00:00
protected_branch_list_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
protected_branch_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
protected_tag.go Enable `nilnil` linter for new code (#36591) 2026-02-16 09:57:18 +00:00
protected_tag_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00