From 83c02a1daceb1f9bdff797286a4f2232b154173a Mon Sep 17 00:00:00 2001 From: Richard Kosegi Date: Fri, 2 Dec 2022 19:31:49 +0100 Subject: [PATCH] Remove unused code Signed-off-by: Richard Kosegi --- .../jenkins/plugins/hetzner/HetznerConstants.java | 15 --------------- .../plugins/hetzner/OrphanedNodesCleaner.java | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/java/cloud/dnation/jenkins/plugins/hetzner/HetznerConstants.java b/src/main/java/cloud/dnation/jenkins/plugins/hetzner/HetznerConstants.java index a204e5a..cc3dc1c 100644 --- a/src/main/java/cloud/dnation/jenkins/plugins/hetzner/HetznerConstants.java +++ b/src/main/java/cloud/dnation/jenkins/plugins/hetzner/HetznerConstants.java @@ -29,21 +29,6 @@ @UtilityClass public class HetznerConstants { - /** - * System property name prefix for all properties that this plugin understands. - */ - public static final String PROP_PREFIX = HetznerConstants.class.getPackage().getName(); - - /** - * Name of system property used to override Hetzner API endpoint, used by tests only. - */ - public static final String PROP_API_ENDPOINT = PROP_PREFIX + ".api-endpoint"; - - /** - * Hetzner public cloud API endpoint. - */ - public static final String DEFAULT_ENDPOINT = "https://api.hetzner.cloud/v1/"; - /** * Namespace for labels added to all objects managed by this plugin. */ diff --git a/src/main/java/cloud/dnation/jenkins/plugins/hetzner/OrphanedNodesCleaner.java b/src/main/java/cloud/dnation/jenkins/plugins/hetzner/OrphanedNodesCleaner.java index 2888266..1ef3e39 100644 --- a/src/main/java/cloud/dnation/jenkins/plugins/hetzner/OrphanedNodesCleaner.java +++ b/src/main/java/cloud/dnation/jenkins/plugins/hetzner/OrphanedNodesCleaner.java @@ -44,7 +44,7 @@ private static Set getHetznerClouds() { } @Override - protected void doRun() throws Exception { + protected void doRun() { doCleanup(); }