From 9dcf671d1390694934a580dc6eda383e4be270b0 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 16 Aug 2012 17:45:32 +0000 Subject: Remove #if 0 that has been around for a long time. llvm-svn: 162030 --- clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp') diff --git a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp index c09bdf2b5e5..982bcbfcdf9 100644 --- a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp +++ b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp @@ -487,26 +487,6 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID, E = Ranges.end(); I != E; ++I) { HighlightRange(R, LPosInfo.first, *I); } - -#if 0 - // If there is a code insertion hint, insert that code. - // FIXME: This code is disabled because it seems to mangle the HTML - // output. I'm leaving it here because it's generally the right idea, - // but needs some help from someone more familiar with the rewriter. - for (const FixItHint *Hint = P.fixit_begin(), *HintEnd = P.fixit_end(); - Hint != HintEnd; ++Hint) { - if (Hint->RemoveRange.isValid()) { - HighlightRange(R, LPosInfo.first, Hint->RemoveRange, - "", ""); - } - if (Hint->InsertionLoc.isValid()) { - std::string EscapedCode = html::EscapeText(Hint->CodeToInsert, true); - EscapedCode = "" + EscapedCode - + ""; - R.InsertTextBefore(Hint->InsertionLoc, EscapedCode); - } - } -#endif } static void EmitAlphaCounter(raw_ostream &os, unsigned n) { -- cgit v1.2.3