summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-01-12 14:22:42 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-01-12 14:22:42 +0000
commit8f1187a11b70d509bfd955da7482d84f658b20c1 (patch)
tree33c338c9f0b8cd345128314b7eaba305285e6a24
parent410780b82c761075541bf5b58fbdb151d485bacc (diff)
downloadbcm5719-llvm-8f1187a11b70d509bfd955da7482d84f658b20c1.tar.gz
bcm5719-llvm-8f1187a11b70d509bfd955da7482d84f658b20c1.zip
Remove unused private field.
llvm-svn: 172314
-rw-r--r--clang/lib/Format/Format.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 61d2f7fb63f..83be79ea521 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -192,13 +192,11 @@ class UnwrappedLineFormatter {
public:
UnwrappedLineFormatter(const FormatStyle &Style, SourceManager &SourceMgr,
const UnwrappedLine &Line, unsigned FirstIndent,
- bool FitsOnALine, LineType CurrentLineType,
- const AnnotatedToken &RootToken,
+ bool FitsOnALine, const AnnotatedToken &RootToken,
tooling::Replacements &Replaces, bool StructuralError)
: Style(Style), SourceMgr(SourceMgr), Line(Line),
FirstIndent(FirstIndent), FitsOnALine(FitsOnALine),
- CurrentLineType(CurrentLineType), RootToken(RootToken),
- Replaces(Replaces) {
+ RootToken(RootToken), Replaces(Replaces) {
Parameters.PenaltyIndentLevel = 15;
Parameters.PenaltyLevelDecrease = 30;
Parameters.PenaltyExcessCharacter = 1000000;
@@ -587,7 +585,6 @@ private:
const UnwrappedLine &Line;
const unsigned FirstIndent;
const bool FitsOnALine;
- const LineType CurrentLineType;
const AnnotatedToken &RootToken;
tooling::Replacements &Replaces;
@@ -1337,8 +1334,7 @@ public:
I, E);
UnwrappedLineFormatter Formatter(
Style, SourceMgr, Line, Indent, FitsOnALine,
- AnnotatedLine->getLineType(), AnnotatedLine->getRootToken(),
- Replaces, StructuralError);
+ AnnotatedLine->getRootToken(), Replaces, StructuralError);
PreviousEndOfLineColumn = Formatter.format();
} else {
// If we did not reformat this unwrapped line, the column at the end of
OpenPOWER on IntegriCloud