Przeglądaj źródła

Removed GetUserByName Redeclaration

Yoginth 7 lat temu
rodzic
commit
dee49d6836
1 zmienionych plików z 0 dodań i 9 usunięć
  1. 0 9
      routes/user/profile.go

+ 0 - 9
routes/user/profile.go

@@ -132,12 +132,3 @@ func Action(c *context.Context, puser *context.ParamsUser) {
 	}
 	c.Redirect(redirectTo)
 }
-
-func GetUserByName(c *context.Context, name string) *models.User {
-	user, err := models.GetUserByName(name)
-	if err != nil {
-		c.NotFoundOrServerError("GetUserByName", errors.IsUserNotExist, err)
-		return nil
-	}
-	return user
-}