Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

Commit 4fc3aea

Browse files
authored
Merge pull request #1788 from dcci/deadohmy
2 parents 7a5953a + de5c511 commit 4fc3aea

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

source/Plugins/ExpressionParser/Swift/SwiftExpressionParser.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -843,27 +843,6 @@ static void ResolveSpecialNames(
843843
}
844844
}
845845

846-
//----------------------------------------------------------------------
847-
/// Diagnostics are part of the SwiftASTContext and we must enable and
848-
/// disable colorization manually in the SwiftASTContext. We need to
849-
/// ensure that if we modify the setting that we restore it to what it
850-
/// was. This class helps us to do that without having to intrument
851-
/// all returns from a function, like in
852-
/// SwiftExpressionParser::Parse(...).
853-
/// //----------------------------------------------------------------------
854-
class SetColorize {
855-
public:
856-
SetColorize(SwiftASTContext *swift_ast, bool colorize)
857-
: m_swift_ast(swift_ast),
858-
m_saved_colorize(swift_ast->SetColorizeDiagnostics(colorize)) {}
859-
860-
~SetColorize() { m_swift_ast->SetColorizeDiagnostics(m_saved_colorize); }
861-
862-
protected:
863-
SwiftASTContext *m_swift_ast;
864-
const bool m_saved_colorize;
865-
};
866-
867846
/// Initialize the SwiftASTContext and return the wrapped
868847
/// swift::ASTContext when successful.
869848
static swift::ASTContext *SetupASTContext(
@@ -913,11 +892,6 @@ static swift::ASTContext *SetupASTContext(
913892
// swift_ast_context->GetLanguageOptions().DebugConstraintSolver = true;
914893
swift_ast_context->ClearDiagnostics();
915894

916-
// Make a class that will set/restore the colorize setting in the
917-
// SwiftASTContext for us.
918-
919-
// SetColorize colorize(swift_ast_context,
920-
// stream.GetFlags().Test(Stream::eANSIColor));
921895
swift_ast_context->GetLanguageOptions().DebuggerSupport = true;
922896
// No longer part of debugger support, set it separately.
923897
swift_ast_context->GetLanguageOptions().EnableDollarIdentifiers = true;

0 commit comments

Comments
 (0)