Skip to content

Commit e09c5e5

Browse files
committed
not needed
1 parent c793bfa commit e09c5e5

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

src/Compiler/Facilities/DiagnosticsLogger.fs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -375,31 +375,6 @@ type CapturingDiagnosticsLogger(nm, ?eagerFormat) =
375375
let errors = diagnostics.ToArray()
376376
errors |> Array.iter diagnosticsLogger.DiagnosticSink
377377

378-
type ConcurrentCapturingDiagnosticsLogger(nm, ?eagerFormat) =
379-
inherit DiagnosticsLogger(nm)
380-
let mutable errorCount = 0
381-
let diagnostics = System.Collections.Concurrent.ConcurrentQueue()
382-
383-
override _.DiagnosticSink(diagnostic, severity) =
384-
let diagnostic =
385-
match eagerFormat with
386-
| None -> diagnostic
387-
| Some f -> f diagnostic
388-
389-
if severity = FSharpDiagnosticSeverity.Error then
390-
Interlocked.Increment &errorCount |> ignore
391-
392-
diagnostics.Enqueue(diagnostic, severity)
393-
394-
override _.ErrorCount = errorCount
395-
396-
member _.Diagnostics = diagnostics |> Seq.toList
397-
398-
member _.CommitDelayedDiagnostics(diagnosticsLogger: DiagnosticsLogger) =
399-
// Eagerly grab all the errors and warnings from the mutable collection
400-
let errors = diagnostics.ToArray()
401-
errors |> Array.iter diagnosticsLogger.DiagnosticSink
402-
403378
/// Type holds thread-static globals for use by the compiler.
404379
type DiagnosticsAsyncState =
405380
static let buildPhase = new AsyncLocal<BuildPhase voption>()

src/Compiler/Facilities/DiagnosticsLogger.fsi

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -226,21 +226,6 @@ type CapturingDiagnosticsLogger =
226226

227227
override ErrorCount: int
228228

229-
/// Represents a DiagnosticsLogger that captures all diagnostics, optionally formatting them
230-
/// eagerly.
231-
type ConcurrentCapturingDiagnosticsLogger =
232-
inherit DiagnosticsLogger
233-
234-
new: nm: string * ?eagerFormat: (PhasedDiagnostic -> PhasedDiagnostic) -> ConcurrentCapturingDiagnosticsLogger
235-
236-
member CommitDelayedDiagnostics: diagnosticsLogger: DiagnosticsLogger -> unit
237-
238-
override DiagnosticSink: diagnostic: PhasedDiagnostic * severity: FSharpDiagnosticSeverity -> unit
239-
240-
member Diagnostics: (PhasedDiagnostic * FSharpDiagnosticSeverity) list
241-
242-
override ErrorCount: int
243-
244229
/// Thread statics for the installed diagnostic logger
245230
[<Class>]
246231
type DiagnosticsAsyncState =

0 commit comments

Comments
 (0)