summaryrefslogtreecommitdiffstats
path: root/clustercontroller-utils
diff options
context:
space:
mode:
authorHarald Musum <musum@yahooinc.com>2022-09-19 23:24:22 +0200
committerHarald Musum <musum@yahooinc.com>2022-09-19 23:24:22 +0200
commit3dd0ecf0fbc1ebe1ef6a896ac328bba0dd7743a4 (patch)
tree47125d749bb3ac2de3aa870c6f8110b514195cf5 /clustercontroller-utils
parent76e4699558a2648e1550d69110ff36a96840776f (diff)
Remove unused class
Diffstat (limited to 'clustercontroller-utils')
-rw-r--r--clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/util/Clock.java13
-rw-r--r--clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/util/ClockTest.java17
2 files changed, 0 insertions, 30 deletions
diff --git a/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/util/Clock.java b/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/util/Clock.java
deleted file mode 100644
index b555c84bcb8..00000000000
--- a/clustercontroller-utils/src/main/java/com/yahoo/vespa/clustercontroller/utils/util/Clock.java
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.vespa.clustercontroller.utils.util;
-
-/**
- * Wrap access to clock so that we can override it in unit tests
- */
-public class Clock {
-
- public long getTimeInMillis() { return System.currentTimeMillis(); }
-
- public int getTimeInSecs() { return (int)(getTimeInMillis() / 1000); }
-
-}
diff --git a/clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/util/ClockTest.java b/clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/util/ClockTest.java
deleted file mode 100644
index c791723615c..00000000000
--- a/clustercontroller-utils/src/test/java/com/yahoo/vespa/clustercontroller/utils/util/ClockTest.java
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-package com.yahoo.vespa.clustercontroller.utils.util;
-
-import org.junit.jupiter.api.Test;
-
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-public class ClockTest {
-
- @Test
- void testNothingButGetCoverage() {
- long s = new Clock().getTimeInSecs();
- long ms = new Clock().getTimeInMillis();
- assertTrue(ms >= 1000 * s);
- }
-
-}