From f87e11e2ebdde6171b36bf8363b18d923f61fad3 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 27 Nov 2023 16:49:44 +0100 Subject: [PATCH] [DEADCODE] update deadcode-out (cherry picked from commit ff0554a18464ff3c6bfaf9551984e8d2f54d8298) (cherry picked from commit e9901814be58afa1aaa9c904b5b3e56e98bb96c5) (cherry picked from commit 9ff7c41d53cc68e48a398bc666f82e94720899be) (cherry picked from commit 9601dee4a3b792797df6207cd3431dd693e632bf) [DEADCODE] update deadcode-out (squash) update (cherry picked from commit aef379c5f5c3efa0dc959ea6e3b31acef43eb59a) (cherry picked from commit 75473ea87af675b71dbae382199cd873627ac93c) [DEADCODE] update deadcode-out (squash) update (cherry picked from commit 868b7a436f37f2946d3b0095e3b91029876de5bb) (cherry picked from commit 38787c8779bf461672dfef0b85a3bf4c1ffbf7ee) [DEADCODE] update deadcode-out (squash) update again (cherry picked from commit 91b2932907e0c21cb95bfcdff7258d0800273a51) (cherry picked from commit 39adff772d209dd281d70412276cca5c72024243) (cherry picked from commit 9f76193ea4c44d66c5ffc9506cae5156a15223ab) (cherry picked from commit 8968396cbcbdf546f4cc6283b37a6e4fded56d74) --- .deadcode-out | 54 +++++++++++++-------------------------------------- 1 file changed, 13 insertions(+), 41 deletions(-) diff --git a/.deadcode-out b/.deadcode-out index d973769997..ec08a0ca64 100644 --- a/.deadcode-out +++ b/.deadcode-out @@ -17,17 +17,15 @@ package "code.gitea.io/gitea/models" func GetYamlFixturesAccess package "code.gitea.io/gitea/models/actions" - func ListUploadedArtifactsByRunID - func CountRunJobs func (ScheduleList).GetUserIDs func (ScheduleList).GetRepoIDs func (ScheduleList).LoadTriggerUser func (ScheduleList).LoadRepos - func FindSchedules - func CountSpecs func GetVariableByID package "code.gitea.io/gitea/models/asymkey" + func (ErrGPGKeyAccessDenied).Error + func (ErrGPGKeyAccessDenied).Unwrap func HasDeployKey package "code.gitea.io/gitea/models/auth" @@ -39,8 +37,6 @@ package "code.gitea.io/gitea/models/db" func TruncateBeans func InTransaction func DumpTables - func Count - func FindAndCount package "code.gitea.io/gitea/models/dbfs" func (*file).renameTo @@ -52,10 +48,6 @@ package "code.gitea.io/gitea/models/forgejo/semver" func SetVersionString func SetVersion -package "code.gitea.io/gitea/models/forgejo_migrations" - func GetCurrentDBVersion - func EnsureUpToDate - package "code.gitea.io/gitea/models/git" func RemoveDeletedBranchByID @@ -63,18 +55,7 @@ package "code.gitea.io/gitea/models/issues" func IsErrUnknownDependencyType func (ErrNewIssueInsert).Error func IsErrIssueWasClosed - func GetIssueWithAttrsByID - func GetRepoIDsForIssuesOptions - func GetLabelIDsInOrgByNames func ChangeMilestoneStatus - func GetMilestonesByRepoIDs - func CountMilestonesByRepoCond - func GetMilestonesStatsByRepoCond - func IsErrErrPullRequestHeadRepoMissing - func (ErrPullRequestHeadRepoMissing).Error - func GetPullRequestsByHeadBranch - func (ErrIssueStopwatchAlreadyExist).Error - func (ErrIssueStopwatchAlreadyExist).Unwrap package "code.gitea.io/gitea/models/migrations/base" func removeAllWithRetry @@ -88,11 +69,6 @@ package "code.gitea.io/gitea/models/organization" func (SearchMembersOptions).ToConds func UsersInTeamsCount -package "code.gitea.io/gitea/models/packages/alpine" - func GetBranches - func GetRepositories - func GetArchitectures - package "code.gitea.io/gitea/models/perm/access" func GetRepoWriters @@ -106,6 +82,8 @@ package "code.gitea.io/gitea/models/repo" func (*releaseSorter).Less func (*releaseSorter).Swap func SortReleases + func FindReposMapByIDs + func RepositoryListOfMap func (SearchOrderBy).String func IsErrTopicNotExist func (ErrTopicNotExist).Error @@ -113,9 +91,6 @@ package "code.gitea.io/gitea/models/repo" func GetTopicByName func WatchRepoMode -package "code.gitea.io/gitea/models/system" - func DeleteNotice - package "code.gitea.io/gitea/models/unittest" func CheckConsistencyFor func checkForConsistency @@ -174,8 +149,6 @@ package "code.gitea.io/gitea/modules/auth/password/pwn" func WithHTTP package "code.gitea.io/gitea/modules/base" - func BasicAuthEncode - func IsLetter func SetupGiteaRoot package "code.gitea.io/gitea/modules/cache" @@ -185,8 +158,6 @@ package "code.gitea.io/gitea/modules/cache" package "code.gitea.io/gitea/modules/charset" func (*BreakWriter).Write - func ToUTF8 - func EscapeControlString package "code.gitea.io/gitea/modules/context" func GetPrivateContext @@ -208,7 +179,6 @@ package "code.gitea.io/gitea/modules/git" func (ErrUnsupportedVersion).Error func SetUpdateHook func openRepositoryWithDefaultContext - func GetBranchCommitID func IsTagExist func ToEntryMode func (*LimitedReaderCloser).Read @@ -217,9 +187,11 @@ package "code.gitea.io/gitea/modules/git" package "code.gitea.io/gitea/modules/gitgraph" func (*Parser).Reset +package "code.gitea.io/gitea/modules/gitrepo" + func GetBranchCommitID + package "code.gitea.io/gitea/modules/graceful" func (*Manager).TerminateContext - func (*Manager).IsTerminate func (*Manager).Err func (*Manager).Value func (*Manager).Deadline @@ -235,6 +207,7 @@ package "code.gitea.io/gitea/modules/json" func (StdJSON).Indent package "code.gitea.io/gitea/modules/markup" + func IsSameDomain func GetRendererByType func RenderString func IsMarkupFile @@ -308,8 +281,8 @@ package "code.gitea.io/gitea/modules/testlogger" package "code.gitea.io/gitea/modules/timeutil" func GetExecutableModTime - func Set - func Unset + func MockSet + func MockUnset package "code.gitea.io/gitea/modules/translation" func (MockLocale).Language @@ -317,6 +290,9 @@ package "code.gitea.io/gitea/modules/translation" func (MockLocale).TrN func (MockLocale).PrettyNumber +package "code.gitea.io/gitea/modules/util" + func UnsafeStringToBytes + package "code.gitea.io/gitea/modules/util/filebuffer" func CreateFromReader @@ -341,14 +317,10 @@ package "code.gitea.io/gitea/services/convert" package "code.gitea.io/gitea/services/forms" func (*DeadlineForm).Validate -package "code.gitea.io/gitea/services/packages/alpine" - func BuildAllRepositoryFiles - package "code.gitea.io/gitea/services/pull" func IsCommitStatusContextSuccess package "code.gitea.io/gitea/services/repository" - func GetBranchCommitID func IsErrForkAlreadyExist package "code.gitea.io/gitea/services/repository/archiver"