From 7067dcb1bc722ac00eda900271a73fde4071308f Mon Sep 17 00:00:00 2001 From: Mahmoud Ben Hassine Date: Thu, 9 Sep 2021 21:22:45 +0200 Subject: [PATCH] Remove unused private method in SimpleFlow --- .../batch/core/job/flow/support/SimpleFlow.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/support/SimpleFlow.java b/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/support/SimpleFlow.java index d14bbb61c..5d3d32b23 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/support/SimpleFlow.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/job/flow/support/SimpleFlow.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2014 the original author or authors. + * Copyright 2006-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +48,7 @@ import org.springframework.beans.factory.InitializingBean; * * @author Dave Syer * @author Michael Minella + * @author Mahmoud Ben Hassine * @since 2.0 */ public class SimpleFlow implements Flow, InitializingBean { @@ -259,10 +260,6 @@ public class SimpleFlow implements Flow, InitializingBean { return continued; } - private boolean stateNameEndsWithStepName(State state, StepExecution stepExecution) { - return !(stepExecution == null || state == null) && !state.getName().endsWith(stepExecution.getStepName()); - } - /** * Analyse the transitions provided and generate all the information needed * to execute the flow.