Formatter: Remove a redundant CurrentLineType check.
The containing if checks for this already. No functionality change.
llvm-svn: 172306
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 0c486e0..89fbf61 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -1176,8 +1176,8 @@
if (Right.is(tok::identifier) && !Right.Children.empty() &&
Right.Children[0].is(tok::colon) && Left.is(tok::identifier))
return true;
- if (CurrentLineType == LT_ObjCMethodDecl && Right.is(tok::identifier) &&
- Left.is(tok::l_paren) && Left.Parent->is(tok::colon))
+ if (Right.is(tok::identifier) && Left.is(tok::l_paren) &&
+ Left.Parent->is(tok::colon))
// Don't break this identifier as ':' or identifier
// before it will break.
return false;