aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/Format.cpp
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
commitb14d1cae88b7966da5112ea58009140d49a0fb2d (patch)
tree9ea7809b4aebb2f46e68bc20d5a7ae7e347e9f98 /lib/Format/Format.cpp
parentb312314cd7aaf8a4c3902aa28c8bc0a9662a8e9b (diff)
Remove unused private field.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172314 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r--lib/Format/Format.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp
index 61d2f7fb63..83be79ea52 100644
--- a/lib/Format/Format.cpp
+++ b/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