summaryrefslogtreecommitdiffstats
path: root/models/org.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/org.go')
-rw-r--r--models/org.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/models/org.go b/models/org.go
index 3c16572603..4a4fcb4add 100644
--- a/models/org.go
+++ b/models/org.go
@@ -201,23 +201,6 @@ func CountOrganizations() int64 {
return count
}
-// Organizations returns number of organizations in given page.
-func Organizations(opts *SearchUserOptions) ([]*User, error) {
- orgs := make([]*User, 0, opts.PageSize)
-
- if len(opts.OrderBy) == 0 {
- opts.OrderBy = "name ASC"
- }
-
- sess := x.
- Limit(opts.PageSize, (opts.Page-1)*opts.PageSize).
- Where("type=1")
-
- return orgs, sess.
- OrderBy(opts.OrderBy).
- Find(&orgs)
-}
-
// DeleteOrganization completely and permanently deletes everything of organization.
func DeleteOrganization(org *User) (err error) {
sess := x.NewSession()