Skip to content

Commit 3383526

Browse files
committed
gdalalg_abstract_pipeline.cpp: remove dead code
1 parent 3adc58b commit 3383526

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

apps/gdalalg_abstract_pipeline.cpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -833,18 +833,7 @@ bool GDALAbstractPipelineAlgorithm::ParseCommandLineArguments(
833833

834834
if (m_eLastStepAsWrite == StepConstraint::MUST_BE)
835835
{
836-
if (!m_bExpectReadStep)
837-
{
838-
if (steps.empty())
839-
{
840-
ReportError(
841-
CE_Failure, CPLE_AppDefined,
842-
"At least one step must be provided in %s pipeline.",
843-
m_bInnerPipeline ? "an inner" : "a");
844-
return false;
845-
}
846-
}
847-
else if (steps.size() < 2)
836+
if (steps.size() < 2)
848837
{
849838
if (!steps.empty() && helpRequested)
850839
{

0 commit comments

Comments
 (0)