From 2d8866318e7692ff2221e95bc05368d11768f460 Mon Sep 17 00:00:00 2001 From: Richard Kosegi Date: Thu, 9 Jun 2022 08:54:45 +0200 Subject: [PATCH] Remove unused method Signed-off-by: Richard Kosegi --- .../cloud/dnation/jenkins/plugins/hetzner/Helper.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main/java/cloud/dnation/jenkins/plugins/hetzner/Helper.java b/src/main/java/cloud/dnation/jenkins/plugins/hetzner/Helper.java index 1b4c475..337bba1 100644 --- a/src/main/java/cloud/dnation/jenkins/plugins/hetzner/Helper.java +++ b/src/main/java/cloud/dnation/jenkins/plugins/hetzner/Helper.java @@ -74,17 +74,6 @@ public static String getSSHPublicKeyFromPrivate(String privateKey, @Nullable Str return SSH_RSA + " " + Base64.getEncoder().encodeToString(bos.toByteArray()); } - /** - * Get integer value of system property or default value if no such property exists. - * - * @param propName name of property to get - * @param defaultValue default value to use if property is not defined - * @return integer value of property - */ - public static int getIntPropOrDefault(String propName, int defaultValue) { - return Integer.parseInt(System.getProperty(propName, String.valueOf(defaultValue))); - } - /** * Check if given string could possibly be label expression. *