From f94c1b3943ebc4249e6240855c5414f735e8b25f Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 14 Dec 2017 07:45:31 +0800 Subject: Improvements for supporting UI Location (#3146) * improvements for supporting UI Location * improved the comment --- models/user.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'models/user.go') 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 { -- cgit v1.2.3