aboutsummaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-12-14 07:45:31 +0800
committerGitHub <noreply@github.com>2017-12-14 07:45:31 +0800
commitf94c1b3943ebc4249e6240855c5414f735e8b25f (patch)
tree720895df7e78cd95e3803929332485b5619b611e /models/user.go
parentb6d2243ac056be7997ef8d14be505873ce34a47e (diff)
downloadgitea-f94c1b3943ebc4249e6240855c5414f735e8b25f.tar.gz
gitea-f94c1b3943ebc4249e6240855c5414f735e8b25f.zip
Improvements for supporting UI Location (#3146)
* improvements for supporting UI Location * improved the comment
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/models/user.go b/models/user.go
index 0a2e2e9f92..fa5dc73deb 100644
--- a/models/user.go
+++ b/models/user.go
@@ -151,14 +151,6 @@ func (u *User) UpdateDiffViewStyle(style string) error {
return UpdateUserCols(u, "diff_view_style")
}
-/*
-// AfterLoad is invoked from XORM after setting the values of all fields of this object.
-func (u *User) AfterLoad() {
- u.Created = time.Unix(u.CreatedUnix, 0).Local()
- u.Updated = time.Unix(u.UpdatedUnix, 0).Local()
- u.LastLogin = time.Unix(u.LastLoginUnix, 0).Local()
-}*/
-
// getEmail returns an noreply email, if the user has set to keep his
// email address private, otherwise the primary email address.
func (u *User) getEmail() string {