From 5ff660e5f3e73382781f854a0afc350d2ad6d626 Mon Sep 17 00:00:00 2001 From: Alexander Alexeev Date: Sun, 11 Dec 2016 00:00:35 +0700 Subject: duplicated util method is removed --- juick-server/src/main/java/com/juick/util/UserUtils.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'juick-server') diff --git a/juick-server/src/main/java/com/juick/util/UserUtils.java b/juick-server/src/main/java/com/juick/util/UserUtils.java index 372dd502..ba1bd1ab 100644 --- a/juick-server/src/main/java/com/juick/util/UserUtils.java +++ b/juick-server/src/main/java/com/juick/util/UserUtils.java @@ -22,10 +22,6 @@ public class UserUtils { return sb.toString(); } - public static boolean checkUserNameValid(final String uname) { - return uname != null && uname.length() >= 2 && uname.length() <= 16 && uname.matches("[a-zA-Z0-9\\-]+"); - } - public static String getUsername(final Principal principal, final String defaultUsername) { return principal == null ? defaultUsername : principal.getName(); } -- cgit v1.2.3