Index: DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Dike.cs =================================================================== diff -u -r5954 -r6220 --- DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Dike.cs (.../Dike.cs) (revision 5954) +++ DamClients/DamUI/trunk/src/DamClientsLibrary/Deltares.Dam.Data/Dike.cs (.../Dike.cs) (revision 6220) @@ -65,13 +65,6 @@ locations = new List(); soilProfiles = new List(); - -#pragma warning disable CS0618 // Type or member is obsolete - surfaceLines = new DelegatedList -#pragma warning restore CS0618 // Type or member is obsolete - { - AddMethod = ConvertAddedOldSurfaceLineToNewFormat - }; SurfaceLines2 = new List(); pl1Lines = new List(); soilList = new SoilList(); @@ -646,48 +639,4 @@ Locations = newLocations; return logMessages; } - - #region Backwards compatibility - -#pragma warning disable CS0618 // Type or member is obsolete - private IList surfaceLines; -#pragma warning restore CS0618 // Type or member is obsolete - - /// - /// Gets or sets all surface lines instances associated with this dike. - /// - /// - /// Composite owner of all that are part of the - /// application that are associated with this dike. - /// - [Obsolete("Do not use this member; Only exists for backwards compatibility.", true)] - public virtual IList SurfaceLines - { - get => surfaceLines; - set => surfaceLines = value; - } - - /// - /// Performs backwards compatibility conversion from old-style surfaceline to new-style - /// surfaceline, and ensures that shared references are set correctly. - /// - /// Persisted version of the old-style surfaceline. -#pragma warning disable CS0618 // Type or member is obsolete - private void ConvertAddedOldSurfaceLineToNewFormat(SurfaceLine argument) -#pragma warning restore CS0618 // Type or member is obsolete - { - SurfaceLine2 surfaceLine2 = new OldSurfaceLineToNewConverter().Convert(argument); - SurfaceLines2.Add(surfaceLine2); - - foreach (Location location in Locations) - { - location.SetNewSurfaceLineIfMatchesWithOldPersistedSurfaceLine(surfaceLine2); - } - - // Remove old entry; it is no longer required. - surfaceLines.Remove(argument); - argument.Dispose(); - } - - #endregion } \ No newline at end of file