|
1 | 1 | package fr.xephi.authme.util;
|
2 | 2 |
|
3 | 3 | import fr.xephi.authme.ConsoleLogger;
|
4 |
| -import fr.xephi.authme.message.MessageKey; |
5 |
| -import fr.xephi.authme.process.register.RegisterSecondaryArgument; |
6 |
| -import fr.xephi.authme.process.register.RegistrationType; |
7 | 4 |
|
8 | 5 | import java.util.regex.Pattern;
|
9 | 6 |
|
@@ -62,30 +59,4 @@ public static int getCoreCount() {
|
62 | 59 | return Runtime.getRuntime().availableProcessors();
|
63 | 60 | }
|
64 | 61 |
|
65 |
| - /** |
66 |
| - * Returns the proper message key for the given registration types. |
67 |
| - * |
68 |
| - * @param registrationType the registration type |
69 |
| - * @param secondaryArgType secondary argument type for the register command |
70 |
| - * @return the message key |
71 |
| - */ |
72 |
| - // TODO #1037: Remove this method |
73 |
| - public static MessageKey getRegisterMessage(RegistrationType registrationType, |
74 |
| - RegisterSecondaryArgument secondaryArgType) { |
75 |
| - if (registrationType == RegistrationType.PASSWORD) { |
76 |
| - if (secondaryArgType == RegisterSecondaryArgument.CONFIRMATION) { |
77 |
| - return MessageKey.REGISTER_MESSAGE; |
78 |
| - } else if (secondaryArgType == RegisterSecondaryArgument.NONE) { |
79 |
| - return MessageKey.REGISTER_NO_REPEAT_MESSAGE; |
80 |
| - } else { /* EMAIL_MANDATORY || EMAIL_OPTIONAL */ |
81 |
| - return MessageKey.REGISTER_PASSWORD_EMAIL_MESSAGE; |
82 |
| - } |
83 |
| - } else { /* registrationType == EMAIL */ |
84 |
| - if (secondaryArgType == RegisterSecondaryArgument.NONE) { |
85 |
| - return MessageKey.REGISTER_EMAIL_NO_REPEAT_MESSAGE; |
86 |
| - } else { /* CONFIRMATION || EMAIL_MANDATORY || EMAIL_OPTIONAL */ |
87 |
| - return MessageKey.REGISTER_EMAIL_MESSAGE; |
88 |
| - } |
89 |
| - } |
90 |
| - } |
91 | 62 | }
|
0 commit comments