From e77b5e8b941816e4dbfe8bc9e76744eb7cb7d786 Mon Sep 17 00:00:00 2001 From: Ivan Sopov Date: Sun, 27 Apr 2014 20:01:58 +0400 Subject: [PATCH] remove obsolete EmbeddedServletContainer.NONE --- .../embedded/EmbeddedServletContainer.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedServletContainer.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedServletContainer.java index 9b79f11a91..5411e510c3 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedServletContainer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedServletContainer.java @@ -29,28 +29,6 @@ package org.springframework.boot.context.embedded; */ public interface EmbeddedServletContainer { - /** - * An empty {@link EmbeddedServletContainer} that does nothing. - */ - public static final EmbeddedServletContainer NONE = new EmbeddedServletContainer() { - - @Override - public void start() throws EmbeddedServletContainerException { - // Do nothing - }; - - @Override - public void stop() throws EmbeddedServletContainerException { - // Do nothing - } - - @Override - public int getPort() { - return 0; - } - - }; - /** * Starts the embedded servlet container. Calling this method on an already started * container has no effect.