Index: Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/StochasticSoilModelReader.cs =================================================================== diff -u -rc7c07e0937c3148b6223ebdad64fe7d326d1625f -rb5b6d7551427fbbf7f5d0b496c1138893cb52f7a --- Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/StochasticSoilModelReader.cs (.../StochasticSoilModelReader.cs) (revision c7c07e0937c3148b6223ebdad64fe7d326d1625f) +++ Ringtoets/Common/src/Ringtoets.Common.IO/SoilProfile/StochasticSoilModelReader.cs (.../StochasticSoilModelReader.cs) (revision b5b6d7551427fbbf7f5d0b496c1138893cb52f7a) @@ -236,10 +236,7 @@ /// private void SetStochasticSoilProfiles(StochasticSoilModel stochasticSoilModel) { - if (MoveToStochasticSoilModel(currentStochasticSoilModelId)) - { - stochasticSoilModel.StochasticSoilProfiles.AddRange(ReadStochasticSoilProfiles()); - } + stochasticSoilModel.StochasticSoilProfiles.AddRange(ReadStochasticSoilProfiles()); } /// @@ -260,26 +257,6 @@ } /// - /// Moves the reader to the stochastic soil model with id . - /// - /// The id of the stochastic soil model. - /// true if the reader was moved to the stochastic soil model with id - /// successfully, false otherwise. - private bool MoveToStochasticSoilModel(long stochasticSoilModelId) - { - while (HasNext && ReadStochasticSoilModelId() <= stochasticSoilModelId) - { - if (ReadStochasticSoilModelId() == stochasticSoilModelId) - { - currentStochasticSoilModelId = stochasticSoilModelId; - return true; - } - MoveNext(); - } - return false; - } - - /// /// Reads and returns objects that belong to soil model. /// /// The read stochastic soil profiles.