Skip to content

Commit 32e6f99

Browse files
committed
Fix lint
1 parent 09cf742 commit 32e6f99

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

models/commit_status.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,6 @@ type CommitStatusIndex struct {
225225
MaxIndex int64 `xorm:"index"`
226226
}
227227

228-
// deleteResouceIndex delete resource index
229-
func deleteCommitStatusIndex(e db.Engine, repoID int64, sha string) error {
230-
_, err := e.Exec("DELETE FROM `commit_status_index` WHERE repo_id=? AND sha=?", repoID, sha)
231-
return err
232-
}
233-
234228
// GetLatestCommitStatus returns all statuses with a unique context for a given commit.
235229
func GetLatestCommitStatus(repoID int64, sha string, listOptions ListOptions) ([]*CommitStatus, error) {
236230
return getLatestCommitStatus(db.DefaultContext().Engine(), repoID, sha, listOptions)

0 commit comments

Comments
 (0)