diff --git a/src/Workspaces/Core/Portable/Workspace/Solution/SolutionState.CompilationTracker.State.cs b/src/Workspaces/Core/Portable/Workspace/Solution/SolutionState.CompilationTracker.State.cs index 1f9b11a45889cbde39ace0b9c09dc00fb890c188..882fd1200f9375adad9a9192e107f0e42bf2ff4d 100644 --- a/src/Workspaces/Core/Portable/Workspace/Solution/SolutionState.CompilationTracker.State.cs +++ b/src/Workspaces/Core/Portable/Workspace/Solution/SolutionState.CompilationTracker.State.cs @@ -6,15 +6,12 @@ using System; using System.Collections.Immutable; +using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; using Roslyn.Utilities; -#if DEBUG -using System.Diagnostics; -#endif - namespace Microsoft.CodeAnalysis { internal partial class SolutionState @@ -226,8 +223,6 @@ private sealed class FinalState : State HasSuccessfullyLoaded = hasSuccessfullyLoaded; FinalCompilation = finalCompilationSource; -#if DEBUG - if (generatorDriver.GeneratorDriver == null) { // In this case, the finalCompilationSource and compilationWithoutGeneratedFilesSource should point to the @@ -235,8 +230,6 @@ private sealed class FinalState : State Debug.Assert(finalCompilationSource.TryGetValue(out var finalCompilation)); Debug.Assert(object.ReferenceEquals(finalCompilation.Value, compilationWithoutGeneratedFiles)); } - -#endif } } }