Skip to content

Commit 8b0577e

Browse files
committed
remove unused func
1 parent 4f06b23 commit 8b0577e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

services/convert/convert.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -390,16 +390,6 @@ func ToActionWorkflowJob(ctx context.Context, repo *repo_model.Repository, task
390390
}, nil
391391
}
392392

393-
func getActionWorkflowPath(commit *git.Commit) string {
394-
paths := []string{".gitea/workflows", ".github/workflows"}
395-
for _, treePath := range paths {
396-
if _, err := commit.SubTree(treePath); err == nil {
397-
return treePath
398-
}
399-
}
400-
return ""
401-
}
402-
403393
func getActionWorkflowEntry(ctx context.Context, repo *repo_model.Repository, commit *git.Commit, folder string, entry *git.TreeEntry) *api.ActionWorkflow {
404394
cfgUnit := repo.MustGetUnit(ctx, unit.TypeActions)
405395
cfg := cfgUnit.ActionsConfig()

0 commit comments

Comments
 (0)