Skip to content

Commit 02ae197

Browse files
committed
[NFC] Remove dead code detected by code santizer.
1 parent c51b24c commit 02ae197

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -929,16 +929,6 @@ static bool areExprsSameMacroOrLiteral(const BinaryOperator *BinOp,
929929

930930
const auto *LStrl = dyn_cast<StringLiteral>(Lhs);
931931
const auto *RStrl = dyn_cast<StringLiteral>(Rhs);
932-
if (Lil && Ril) {
933-
const llvm::StringRef L = Lexer::getSourceText(
934-
CharSourceRange::getTokenRange(LStrl->getBeginLoc()), SM,
935-
Context->getLangOpts(), 0);
936-
const llvm::StringRef R = Lexer::getSourceText(
937-
CharSourceRange::getTokenRange(RStrl->getBeginLoc()), SM,
938-
Context->getLangOpts(), 0);
939-
return L.compare(R) == 0;
940-
}
941-
942932
const auto *Lbl = dyn_cast<CXXBoolLiteralExpr>(Lhs);
943933
const auto *Rbl = dyn_cast<CXXBoolLiteralExpr>(Rhs);
944934
if (Lbl && Rbl)

0 commit comments

Comments
 (0)