Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs =================================================================== diff -u -r1974 -r3079 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs (.../SoilProfile2D.cs) (revision 1974) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geotechnics/SoilProfile2D.cs (.../SoilProfile2D.cs) (revision 3079) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.Collections.Generic; using Deltares.DamEngine.Data.Geometry; using Deltares.DamEngine.Data.Standard.Language; @@ -31,7 +32,6 @@ /// public class SoilProfile2D : SoilProfile { - protected readonly Dictionary cachedSoilProfiles1D = new Dictionary(); protected GeometryData geometry = new GeometryData(); protected readonly List surfaces = new List(); @@ -84,15 +84,9 @@ public virtual SoilProfile1D GetSoilProfile1D(double x) { const double diff = 0.001; - SoilProfile1D soilProfile = GetCachedSoilProfile1D(x); - - if (soilProfile != null) + + var soilProfile = new SoilProfile1D { - return soilProfile; - } - - soilProfile = new SoilProfile1D - { Name = "Generated at x = " + x + " from " + Name }; var detector = new LayerDetector(Surfaces); @@ -120,9 +114,6 @@ } } - - cachedSoilProfiles1D[x] = soilProfile; - return soilProfile; } @@ -170,19 +161,5 @@ { return Name; } - - /// - /// Gets the cached soil profile1 d. - /// - /// The x. - /// - protected SoilProfile1D GetCachedSoilProfile1D(double x) - { - if (cachedSoilProfiles1D.ContainsKey(x)) - { - return cachedSoilProfiles1D[x]; - } - return null; - } } } \ No newline at end of file