diff options
author | HÃ¥kon Hallingstad <hakon@oath.com> | 2018-01-23 10:01:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-23 10:01:24 +0100 |
commit | e051847d1b87c8a1f5bd0a1386946aae78b1e3ab (patch) | |
tree | 137ba7f8c2d7fdf2eac9f3396c796fdade893888 /jdisc_core/src | |
parent | 81a0bae3aa618b13eb1dc9d79b01666155fe8748 (diff) |
Revert "Redefine task and its context"
Diffstat (limited to 'jdisc_core/src')
-rw-r--r-- | jdisc_core/src/main/java/com/yahoo/jdisc/Timer.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/Timer.java b/jdisc_core/src/main/java/com/yahoo/jdisc/Timer.java index f0dc26844e7..c94ebc1ab93 100644 --- a/jdisc_core/src/main/java/com/yahoo/jdisc/Timer.java +++ b/jdisc_core/src/main/java/com/yahoo/jdisc/Timer.java @@ -4,8 +4,6 @@ package com.yahoo.jdisc; import com.google.inject.ImplementedBy; import com.yahoo.jdisc.core.SystemTimer; -import java.time.Instant; - /** * <p>This class provides access to the current time in milliseconds, as viewed by the {@link Container}. Inject an * instance of this class into any component that needs to access time, instead of using @@ -29,10 +27,4 @@ public interface Timer { */ long currentTimeMillis(); - /** - * Convenience method for getting an java.util.Instance from currentTimeMillis(). - */ - default Instant currentTime() { - return Instant.ofEpochMilli(currentTimeMillis()); - } } |