aboutsummaryrefslogtreecommitdiff
path: root/internal/db/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/user.go')
-rw-r--r--internal/db/user.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/internal/db/user.go b/internal/db/user.go
index 97e2800f..08b7e09e 100644
--- a/internal/db/user.go
+++ b/internal/db/user.go
@@ -124,11 +124,6 @@ func (u *User) AfterSet(colName string, _ xorm.Cell) {
}
}
-// IDStr returns string representation of user's ID.
-func (u *User) IDStr() string {
- return com.ToStr(u.ID)
-}
-
func (u *User) APIFormat() *api.User {
return &api.User{
ID: u.ID,
@@ -140,17 +135,6 @@ func (u *User) APIFormat() *api.User {
}
}
-// returns true if user login type is LoginPlain.
-func (u *User) IsLocal() bool {
- return u.LoginSource <= 0
-}
-
-// HasForkedRepo checks if user has already forked a repository with given ID.
-func (u *User) HasForkedRepo(repoID int64) bool {
- _, has, _ := HasForkedRepo(u.ID, repoID)
- return has
-}
-
func (u *User) RepoCreationNum() int {
if u.MaxRepoCreation <= -1 {
return conf.Repository.MaxCreationLimit