From: Krasimir Georgiev Date: Thu, 20 Apr 2017 13:37:27 +0000 (+0000) Subject: Delete unused IncompleteFormat variable, NFCi. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e6188d5841bcb6d1494106b02f3de43e340d0e0;p=clang Delete unused IncompleteFormat variable, NFCi. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300841 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Index/CommentToXML.cpp b/lib/Index/CommentToXML.cpp index 08acc96c4e..e568c838b7 100644 --- a/lib/Index/CommentToXML.cpp +++ b/lib/Index/CommentToXML.cpp @@ -592,12 +592,10 @@ void CommentASTToXMLConverter::formatTextOfDeclaration( unsigned Offset = 0; unsigned Length = Declaration.size(); - bool IncompleteFormat = false; format::FormatStyle Style = format::getLLVMStyle(); Style.FixNamespaceComments = false; tooling::Replacements Replaces = - reformat(Style, StringDecl, tooling::Range(Offset, Length), "xmldecl.xd", - &IncompleteFormat); + reformat(Style, StringDecl, tooling::Range(Offset, Length), "xmldecl.xd"); auto FormattedStringDecl = applyAllReplacements(StringDecl, Replaces); if (static_cast(FormattedStringDecl)) { Declaration = *FormattedStringDecl;