diff --git a/backend/FwLite/LcmCrdt.Tests/ConfigRegistrationTests.cs b/backend/FwLite/LcmCrdt.Tests/ConfigRegistrationTests.cs index bd3f0a41e8..de8092deca 100644 --- a/backend/FwLite/LcmCrdt.Tests/ConfigRegistrationTests.cs +++ b/backend/FwLite/LcmCrdt.Tests/ConfigRegistrationTests.cs @@ -1,6 +1,5 @@ using FluentAssertions.Execution; using LcmCrdt.Changes; -using LcmCrdt.Changes.Entries; using SIL.Harmony.Changes; using SIL.Harmony.Resource; @@ -12,7 +11,6 @@ public class ConfigRegistrationTests private readonly HashSet _excludedChangeTypes = [ - typeof(ReplaceComplexFormTypeChange), //not currently in use typeof(JsonPatchChange), //not supported typeof(JsonPatchChange), //not supported typeof(JsonPatchChange), //replaced by JsonPatchExampleSentenceChange diff --git a/backend/FwLite/LcmCrdt/Changes/Entries/ReplaceComplexFormTypeChange.cs b/backend/FwLite/LcmCrdt/Changes/Entries/ReplaceComplexFormTypeChange.cs deleted file mode 100644 index 2c7b6686fa..0000000000 --- a/backend/FwLite/LcmCrdt/Changes/Entries/ReplaceComplexFormTypeChange.cs +++ /dev/null @@ -1,19 +0,0 @@ -using SIL.Harmony.Changes; -using SIL.Harmony.Core; -using SIL.Harmony.Entities; - -namespace LcmCrdt.Changes.Entries; - -public class ReplaceComplexFormTypeChange(Guid entityId, ComplexFormType newComplexFormType, Guid oldComplexFormTypeId) : EditChange(entityId), ISelfNamedType -{ - public ComplexFormType NewComplexFormType { get; } = newComplexFormType; - public Guid OldComplexFormTypeId { get; } = oldComplexFormTypeId; - - public override async ValueTask ApplyChange(Entry entity, IChangeContext context) - { - entity.ComplexFormTypes.RemoveAll(t => t.Id == OldComplexFormTypeId); - if (entity.ComplexFormTypes.Any(t => t.Id == NewComplexFormType.Id)) return; - if (await context.IsObjectDeleted(NewComplexFormType.Id)) return; - entity.ComplexFormTypes.Add(NewComplexFormType); - } -}