0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-06-01 00:12:28 +02:00

remove unused func

This commit is contained in:
Christopher Homberger 2025-05-28 19:07:33 +02:00
parent 4f06b233a1
commit 8b0577e888

View File

@ -390,16 +390,6 @@ func ToActionWorkflowJob(ctx context.Context, repo *repo_model.Repository, task
}, nil
}
func getActionWorkflowPath(commit *git.Commit) string {
paths := []string{".gitea/workflows", ".github/workflows"}
for _, treePath := range paths {
if _, err := commit.SubTree(treePath); err == nil {
return treePath
}
}
return ""
}
func getActionWorkflowEntry(ctx context.Context, repo *repo_model.Repository, commit *git.Commit, folder string, entry *git.TreeEntry) *api.ActionWorkflow {
cfgUnit := repo.MustGetUnit(ctx, unit.TypeActions)
cfg := cfgUnit.ActionsConfig()