From d573aebf1248aafc13755c709c5307b9a357a560 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Thu, 15 Jun 2017 17:12:57 +0200 Subject: Clang: Remove pointless code This was some intermediate state. Change-Id: I1390d9b4721a53a08ecc6b6d346dd1e2d9468989 Reviewed-by: David Schulz --- src/tools/clangbackend/ipcsource/clangreferencescollector.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/tools/clangbackend/ipcsource/clangreferencescollector.cpp b/src/tools/clangbackend/ipcsource/clangreferencescollector.cpp index 695b30dc66..df9d937de0 100644 --- a/src/tools/clangbackend/ipcsource/clangreferencescollector.cpp +++ b/src/tools/clangbackend/ipcsource/clangreferencescollector.cpp @@ -155,11 +155,6 @@ ReferencesCollector::~ReferencesCollector() bool ReferencesCollector::isWithinTokenRange(CXToken token, uint line, uint column) const { - const CXSourceLocation location = clang_getTokenLocation(m_cxTranslationUnit, token); - uint candidateLine = 0; - uint candiateColumn = 0; - clang_getFileLocation(location, nullptr, &candidateLine, &candiateColumn, nullptr); - const SourceRange range = clang_getTokenExtent(m_cxTranslationUnit, token); return range.contains(line, column); } -- cgit v1.2.1