From 0208d72d55e333bc621bb7f85743591d62aac0f9 Mon Sep 17 00:00:00 2001 From: Corniel Nobel Date: Sun, 8 Sep 2024 11:35:47 +0200 Subject: [PATCH] Rename. --- .../{BuildEventCollector.cs => BuildEventArgsCollector.cs} | 4 ++-- src/Buildalyzer/ProjectAnalyzer.cs | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) rename src/Buildalyzer/{BuildEventCollector.cs => BuildEventArgsCollector.cs} (85%) diff --git a/src/Buildalyzer/BuildEventCollector.cs b/src/Buildalyzer/BuildEventArgsCollector.cs similarity index 85% rename from src/Buildalyzer/BuildEventCollector.cs rename to src/Buildalyzer/BuildEventArgsCollector.cs index f5b8d64..20e65bd 100644 --- a/src/Buildalyzer/BuildEventCollector.cs +++ b/src/Buildalyzer/BuildEventArgsCollector.cs @@ -6,9 +6,9 @@ namespace Buildalyzer; [DebuggerDisplay("Count = {Count}")] [DebuggerTypeProxy(typeof(Diagnostics.CollectionDebugView))] -internal sealed class BuildEventCollector : IReadOnlyCollection, IDisposable +internal sealed class BuildEventArgsCollector : IReadOnlyCollection, IDisposable { - public BuildEventCollector(EventArgsDispatcher server) + public BuildEventArgsCollector(EventArgsDispatcher server) { Server = server; Server.AnyEventRaised += EventRaised; diff --git a/src/Buildalyzer/ProjectAnalyzer.cs b/src/Buildalyzer/ProjectAnalyzer.cs index 976a9e2..8fb3aa1 100644 --- a/src/Buildalyzer/ProjectAnalyzer.cs +++ b/src/Buildalyzer/ProjectAnalyzer.cs @@ -161,8 +161,6 @@ void OnPipeLoggerOnAnyEventRaised(object o, BuildEventArgs buildEventArgs) pipeLogger.AnyEventRaised += OnPipeLoggerOnAnyEventRaised; - using var collector = new BuildEventCollector(pipeLogger); - using var eventProcessor = new EventProcessor(Manager, this, BuildLoggers, pipeLogger, results != null); // Run MSBuild @@ -205,8 +203,6 @@ void OnProcessRunnerExited() // Collect the results results?.Add(eventProcessor.Results, exitCode == 0 && eventProcessor.OverallSuccess); - - var events = collector.ToImmutableArray(); } return results; }