Skip to content

Commit 6a27e08

Browse files
authored
Merge pull request #1158 from Vlatombe/remove-dead-code
2 parents 78271e5 + 8833f74 commit 6a27e08

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerExecDecorator.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,12 @@
7676
public class ContainerExecDecorator extends LauncherDecorator implements Serializable, Closeable {
7777

7878
private static final long serialVersionUID = 4419929753433397655L;
79-
private static final long DEFAULT_CONTAINER_READY_TIMEOUT = 5;
80-
private static final String CONTAINER_READY_TIMEOUT_SYSTEM_PROPERTY = ContainerExecDecorator.class.getName() + ".containerReadyTimeout";
8179

8280
private static final String WEBSOCKET_CONNECTION_TIMEOUT_SYSTEM_PROPERTY = ContainerExecDecorator.class.getName()
8381
+ ".websocketConnectionTimeout";
8482
/** time to wait in seconds for websocket to connect */
8583
private static final int WEBSOCKET_CONNECTION_TIMEOUT = Integer
8684
.getInteger(WEBSOCKET_CONNECTION_TIMEOUT_SYSTEM_PROPERTY, 30);
87-
private static final long CONTAINER_READY_TIMEOUT = containerReadyTimeout();
8885
private static final String COOKIE_VAR = "JENKINS_SERVER_COOKIE";
8986

9087
private static final Logger LOGGER = Logger.getLogger(ContainerExecDecorator.class.getName());
@@ -738,15 +735,6 @@ static String[] getCommands(Launcher.ProcStarter starter, String containerWorkin
738735
return allCommands.toArray(new String[allCommands.size()]);
739736
}
740737

741-
private static Long containerReadyTimeout() {
742-
String timeout = System.getProperty(CONTAINER_READY_TIMEOUT_SYSTEM_PROPERTY, String.valueOf(DEFAULT_CONTAINER_READY_TIMEOUT));
743-
try {
744-
return Long.parseLong(timeout);
745-
} catch (NumberFormatException e) {
746-
return DEFAULT_CONTAINER_READY_TIMEOUT;
747-
}
748-
}
749-
750738
private static void closeWatch(ExecWatch watch) {
751739
try {
752740
watch.close();

0 commit comments

Comments
 (0)