From 32b4338394740a37ff2acd867040c90bca4b8547 Mon Sep 17 00:00:00 2001 From: Magne Helleborg Date: Mon, 11 Mar 2024 08:24:53 +0100 Subject: [PATCH] Cleanup --- Samples/MongoDBProjections/DishCounter.cs | 1 - .../Builder/ConventionProjectionBuilder.cs | 1 - Source/Projections/Copies/ProjectionCopies.cs | 29 ------------------- .../ProjectionResult{TReadModel}.cs | 2 -- Source/SDK/Builders/SetupBuilder.cs | 3 -- Source/Testing/Aggregates/AggregatesMock.cs | 1 - .../and_event_source_is_a_guid.cs | 1 - .../InvalidProjections/PrivateHandlers.cs | 1 - 8 files changed, 39 deletions(-) delete mode 100644 Source/Projections/Copies/ProjectionCopies.cs diff --git a/Samples/MongoDBProjections/DishCounter.cs b/Samples/MongoDBProjections/DishCounter.cs index 9c7618f6..cf5fd63f 100644 --- a/Samples/MongoDBProjections/DishCounter.cs +++ b/Samples/MongoDBProjections/DishCounter.cs @@ -4,7 +4,6 @@ using System; using Dolittle.SDK.Projections; -using Dolittle.SDK.Projections.Copies.MongoDB; [Projection("98f9db66-b6ca-4e5f-9fc3-638626c9ecfa")] public class DishCounter: ReadModel diff --git a/Source/Projections/Builder/ConventionProjectionBuilder.cs b/Source/Projections/Builder/ConventionProjectionBuilder.cs index 83ad5555..151c0b10 100644 --- a/Source/Projections/Builder/ConventionProjectionBuilder.cs +++ b/Source/Projections/Builder/ConventionProjectionBuilder.cs @@ -9,7 +9,6 @@ using System.Runtime.CompilerServices; using Dolittle.SDK.Common.ClientSetup; using Dolittle.SDK.Events; -using Dolittle.SDK.Projections.Internal; namespace Dolittle.SDK.Projections.Builder; diff --git a/Source/Projections/Copies/ProjectionCopies.cs b/Source/Projections/Copies/ProjectionCopies.cs deleted file mode 100644 index 2371bfe8..00000000 --- a/Source/Projections/Copies/ProjectionCopies.cs +++ /dev/null @@ -1,29 +0,0 @@ -// // Copyright (c) Dolittle. All rights reserved. -// // Licensed under the MIT license. See LICENSE file in the project root for full license information. -// -// using Dolittle.SDK.Projections.Copies.MongoDB; -// using PbProjectionCopies = Dolittle.Runtime.Events.Processing.Contracts.ProjectionCopies; -// -// namespace Dolittle.SDK.Projections.Copies; -// -// /// -// /// Represents the projection copies definition. -// /// -// /// The . -// public record ProjectionCopies(ProjectionCopyToMongoDB MongoDB) -// { -// /// -// /// Converts the to . -// /// -// /// The . -// public PbProjectionCopies ToProtobuf() -// { -// var result = new PbProjectionCopies(); -// if (MongoDB.ShouldCopy) -// { -// result.MongoDB = MongoDB.ToProtobuf(); -// } -// return result; -// } -// } -// diff --git a/Source/Projections/ProjectionResult{TReadModel}.cs b/Source/Projections/ProjectionResult{TReadModel}.cs index c2aa3942..e21b1c4c 100644 --- a/Source/Projections/ProjectionResult{TReadModel}.cs +++ b/Source/Projections/ProjectionResult{TReadModel}.cs @@ -1,8 +1,6 @@ // Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using System; - namespace Dolittle.SDK.Projections; /// diff --git a/Source/SDK/Builders/SetupBuilder.cs b/Source/SDK/Builders/SetupBuilder.cs index a82397da..1a0a59a5 100644 --- a/Source/SDK/Builders/SetupBuilder.cs +++ b/Source/SDK/Builders/SetupBuilder.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Reflection; using System.Threading.Tasks; using BaselineTypeDiscovery; @@ -13,9 +12,7 @@ using Dolittle.SDK.EventHorizon; using Dolittle.SDK.Events.Builders; using Dolittle.SDK.Events.Filters.Builders; -using Dolittle.SDK.Events.Handling; using Dolittle.SDK.Events.Handling.Builder; -using Dolittle.SDK.Projections; using Dolittle.SDK.Projections.Builder; using Microsoft.Extensions.Logging; diff --git a/Source/Testing/Aggregates/AggregatesMock.cs b/Source/Testing/Aggregates/AggregatesMock.cs index be323a81..f20797d6 100644 --- a/Source/Testing/Aggregates/AggregatesMock.cs +++ b/Source/Testing/Aggregates/AggregatesMock.cs @@ -3,7 +3,6 @@ using System; using System.Collections.Concurrent; -using System.Collections.Generic; using Dolittle.SDK.Aggregates; using Dolittle.SDK.Aggregates.Builders; using Dolittle.SDK.Events; diff --git a/Specifications/Events/Store/Converters/for_AggregateEventToSDKConverter/when_converting_committed_aggregate_events/and_event_source_is_a_guid.cs b/Specifications/Events/Store/Converters/for_AggregateEventToSDKConverter/when_converting_committed_aggregate_events/and_event_source_is_a_guid.cs index 3fe5df26..89e539c0 100644 --- a/Specifications/Events/Store/Converters/for_AggregateEventToSDKConverter/when_converting_committed_aggregate_events/and_event_source_is_a_guid.cs +++ b/Specifications/Events/Store/Converters/for_AggregateEventToSDKConverter/when_converting_committed_aggregate_events/and_event_source_is_a_guid.cs @@ -4,7 +4,6 @@ using System; using Dolittle.SDK.Protobuf; using Machine.Specifications; -using PbCommittedAggregateEvent = Dolittle.Runtime.Events.Contracts.CommittedAggregateEvents.Types.CommittedAggregateEvent; using PbCommittedAggregateEvents = Dolittle.Runtime.Events.Contracts.CommittedAggregateEvents; #pragma warning disable CS0612 diff --git a/Tests/ProjectionsTests/InvalidProjections/PrivateHandlers.cs b/Tests/ProjectionsTests/InvalidProjections/PrivateHandlers.cs index f814eb3f..ac4e5078 100644 --- a/Tests/ProjectionsTests/InvalidProjections/PrivateHandlers.cs +++ b/Tests/ProjectionsTests/InvalidProjections/PrivateHandlers.cs @@ -1,7 +1,6 @@ // Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. -using Dolittle.SDK.Events; using Dolittle.SDK.Projections.Types; namespace Dolittle.SDK.Projections.InvalidProjections;