Skip to content

Commit f02a372

Browse files
committed
remove unused
1 parent bb65a90 commit f02a372

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

services/context/api.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -367,15 +367,3 @@ func (ctx *APIContext) IsUserRepoAdmin() bool {
367367
func (ctx *APIContext) IsUserRepoWriter(unitTypes []unit.Type) bool {
368368
return slices.ContainsFunc(unitTypes, ctx.Repo.CanWrite)
369369
}
370-
371-
// IsUserRepoWriter returns true if current user has write commit status privilege in current repo
372-
func (ctx *APIContext) IsUserCommitStatusWriter(unitTypes []unit.Type) bool {
373-
for _, unitType := range unitTypes {
374-
// TODO
375-
if ctx.Repo.CanWrite(unitType) {
376-
return true
377-
}
378-
}
379-
380-
return false
381-
}

0 commit comments

Comments
 (0)