Remove deprecated version of reformat.
authorManuel Klimek <klimek@google.com>
Wed, 6 May 2015 12:12:22 +0000 (12:12 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 6 May 2015 12:12:22 +0000 (12:12 +0000)
llvm-svn: 236594

clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp

index 6b1c0af..3cb4e69 100644 (file)
@@ -538,14 +538,6 @@ std::error_code parseConfiguration(StringRef Text, FormatStyle *Style);
 /// \brief Gets configuration in a YAML string.
 std::string configurationAsText(const FormatStyle &Style);
 
-/// \brief Reformats the given \p Ranges in the token stream coming out of
-/// \c Lex.
-///
-/// DEPRECATED: Do not use.
-tooling::Replacements reformat(const FormatStyle &Style, Lexer &Lex,
-                               SourceManager &SourceMgr,
-                               ArrayRef<CharSourceRange> Ranges);
-
 /// \brief Reformats the given \p Ranges in the file \p ID.
 ///
 /// Each range is extended on either end to its next bigger logic unit, i.e.
index b41528e..e7ebd68 100644 (file)
@@ -1487,15 +1487,6 @@ private:
 
 } // end anonymous namespace
 
-tooling::Replacements reformat(const FormatStyle &Style, Lexer &Lex,
-                               SourceManager &SourceMgr,
-                               ArrayRef<CharSourceRange> Ranges) {
-  if (Style.DisableFormat)
-    return tooling::Replacements();
-  return reformat(Style, SourceMgr,
-                  SourceMgr.getFileID(Lex.getSourceLocation()), Ranges);
-}
-
 tooling::Replacements reformat(const FormatStyle &Style,
                                SourceManager &SourceMgr, FileID ID,
                                ArrayRef<CharSourceRange> Ranges) {