Skip to content

Commit 998f9ff

Browse files
committed
Remove unused function
1 parent 09dc1cd commit 998f9ff

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

modules/gitrepo/commit.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ import (
99
"code.gitea.io/gitea/modules/git"
1010
)
1111

12-
func GetCommit(ctx context.Context, repo Repository, commitID string) (*git.Commit, error) {
13-
gitRepo, err := git.OpenRepository(ctx, repoPath(repo))
14-
if err != nil {
15-
return nil, err
16-
}
17-
defer gitRepo.Close()
18-
return gitRepo.GetCommit(commitID)
19-
}
20-
2112
func CommitsCount(ctx context.Context, repo Repository, ref string) (int64, error) {
2213
return git.CommitsCount(ctx, git.CommitsCountOptions{
2314
RepoPath: repoPath(repo),

0 commit comments

Comments
 (0)