Index: Ringtoets/Piping/src/Ringtoets.Piping.Forms/PresentationObjects/PipingInputContext.cs
===================================================================
diff -u -r614c1aa4bf54ed2852d93a58ba8d49b549d5f46c -rd515de49557312e4af41b1c051c900d39d1f9e2f
--- Ringtoets/Piping/src/Ringtoets.Piping.Forms/PresentationObjects/PipingInputContext.cs (.../PipingInputContext.cs) (revision 614c1aa4bf54ed2852d93a58ba8d49b549d5f46c)
+++ Ringtoets/Piping/src/Ringtoets.Piping.Forms/PresentationObjects/PipingInputContext.cs (.../PipingInputContext.cs) (revision d515de49557312e4af41b1c051c900d39d1f9e2f)
@@ -20,7 +20,6 @@
// All rights reserved.
using System.Collections.Generic;
-using System.Linq;
using Ringtoets.Common.Data.AssessmentSection;
using Ringtoets.Piping.Data;
using Ringtoets.Piping.Primitives;
@@ -44,36 +43,5 @@
/// When any input parameter is null.
public PipingInputContext(PipingInput pipingInput, IEnumerable surfaceLines, IEnumerable stochasticSoilModels, IAssessmentSection assessmentSection)
: base(pipingInput, surfaceLines, stochasticSoilModels, assessmentSection) {}
-
- ///
- /// Sets and that matching the input of a calculation if there is one matching
- /// or respectively.
- ///
- public void SetStochasticSoilModelAndStochasticSoilProfileForSurfaceLine()
- {
- var available = PipingCalculationConfigurationHelper.GetStochasticSoilModelsForSurfaceLine(WrappedData.SurfaceLine, AvailableStochasticSoilModels).ToList();
- if (available.Count == 1)
- {
- if (WrappedData.StochasticSoilModel == available.First())
- {
- return;
- }
- WrappedData.StochasticSoilModel = available.First();
- }
- SetStochasticSoilProfile();
- }
-
- private void SetStochasticSoilProfile()
- {
- if (WrappedData.StochasticSoilModel != null)
- {
- if (WrappedData.StochasticSoilModel.StochasticSoilProfiles.Count == 1)
- {
- WrappedData.StochasticSoilProfile = WrappedData.StochasticSoilModel.StochasticSoilProfiles.First();
- return;
- }
- }
- WrappedData.StochasticSoilProfile = null;
- }
}
}
\ No newline at end of file