aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/util
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-12-11 00:00:35 +0700
committerGravatar Vitaly Takmazov2016-12-11 18:24:37 +0300
commit5ff660e5f3e73382781f854a0afc350d2ad6d626 (patch)
treeab6ab4447c08d80dd3aa467daee3080b1b775395 /juick-server/src/main/java/com/juick/util
parentb1861f326a834865f1d700745dfb5f1b1596ba1f (diff)
duplicated util method is removed
Diffstat (limited to 'juick-server/src/main/java/com/juick/util')
-rw-r--r--juick-server/src/main/java/com/juick/util/UserUtils.java4
1 files changed, 0 insertions, 4 deletions
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();
}