summaryrefslogtreecommitdiffstats
path: root/models/repo_unit.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo_unit.go')
-rw-r--r--models/repo_unit.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/models/repo_unit.go b/models/repo_unit.go
index 1e1778356a..9eaec884bb 100644
--- a/models/repo_unit.go
+++ b/models/repo_unit.go
@@ -166,10 +166,7 @@ func (r *RepoUnit) IssuesConfig() *IssuesConfig {
func (r *RepoUnit) ExternalTrackerConfig() *ExternalTrackerConfig {
return r.Config.(*ExternalTrackerConfig)
}
+
func getUnitsByRepoID(e Engine, repoID int64) (units []*RepoUnit, err error) {
return units, e.Where("repo_id = ?", repoID).Find(&units)
}
-
-func getUnitsByRepoIDAndIDs(e Engine, repoID int64, types []UnitType) (units []*RepoUnit, err error) {
- return units, e.Where("repo_id = ?", repoID).In("`type`", types).Find(&units)
-}