From 8b0577e88825d3cf16a96bedf59b8552278d1d91 Mon Sep 17 00:00:00 2001 From: Christopher Homberger Date: Wed, 28 May 2025 19:07:33 +0200 Subject: [PATCH] remove unused func --- services/convert/convert.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/services/convert/convert.go b/services/convert/convert.go index d08cbb83e8..86f477195a 100644 --- a/services/convert/convert.go +++ b/services/convert/convert.go @@ -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()