Skip to content

Commit 468a245

Browse files
authored
cleanup regarding to core StringUtils (openhab#15786)
Signed-off-by: Leo Siepel <[email protected]>
1 parent 9ce74b2 commit 468a245

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

bundles/org.openhab.binding.myq/src/main/java/org/openhab/binding/myq/internal/handler/MyQAccountHandler.java

-12
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import java.util.Collection;
3030
import java.util.List;
3131
import java.util.Map;
32-
import java.util.Random;
3332
import java.util.Set;
3433
import java.util.concurrent.CompletableFuture;
3534
import java.util.concurrent.ExecutionException;
@@ -621,17 +620,6 @@ private OAuthClientService getOAuthService() {
621620
return oAuthService;
622621
}
623622

624-
private static String randomString(int length) {
625-
int low = 97; // a-z
626-
int high = 122; // A-Z
627-
StringBuilder sb = new StringBuilder(length);
628-
Random random = new Random();
629-
for (int i = 0; i < length; i++) {
630-
sb.append((char) (low + (int) (random.nextFloat() * (high - low + 1))));
631-
}
632-
return sb.toString();
633-
}
634-
635623
private String generateCodeVerifier() {
636624
SecureRandom secureRandom = new SecureRandom();
637625
byte[] codeVerifier = new byte[32];

0 commit comments

Comments
 (0)