From 3c076ee002ef9d9f3be435fa8866e647da4259a4 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 6 May 2009 21:44:23 +0000 Subject: [PATCH] there are situations where this marking is useful outside Cloud git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17800 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/slaves/EphemeralNode.java | 10 +--------- core/src/test/java/hudson/slaves/NodeListTest.java | 4 ---- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/core/src/main/java/hudson/slaves/EphemeralNode.java b/core/src/main/java/hudson/slaves/EphemeralNode.java index 24eaf3077d..ddaa10aecb 100644 --- a/core/src/main/java/hudson/slaves/EphemeralNode.java +++ b/core/src/main/java/hudson/slaves/EphemeralNode.java @@ -26,7 +26,7 @@ package hudson.slaves; import hudson.model.Node; /** - * {@link Node}s that are created by {@link Cloud} and hence not persisted as configuration by itself. + * {@link Node}s that are not persisted as configuration by itself. * * @author Kohsuke Kawaguchi */ @@ -35,12 +35,4 @@ public interface EphemeralNode { * Type-safe cast. */ Node asNode(); - - /** - * Gets the {@link Cloud} that created this {@link EphemeralNode}. - * - * @return - * never null. - */ - Cloud getCloud(); } diff --git a/core/src/test/java/hudson/slaves/NodeListTest.java b/core/src/test/java/hudson/slaves/NodeListTest.java index 0f792c755f..3916cdf8a2 100644 --- a/core/src/test/java/hudson/slaves/NodeListTest.java +++ b/core/src/test/java/hudson/slaves/NodeListTest.java @@ -108,10 +108,6 @@ public class NodeListTest extends TestCase { } } static class EphemeralNode extends DummyNode implements hudson.slaves.EphemeralNode { - public Cloud getCloud() { - throw new UnsupportedOperationException(); - } - public Node asNode() { return this; }