diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2017-06-15 17:12:57 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2017-06-16 06:08:49 +0000 |
commit | d573aebf1248aafc13755c709c5307b9a357a560 (patch) | |
tree | 6a56b4d97bd51595faba376527f698cbb688187e | |
parent | 065e38f5d544aa828dfba9199733af2cbdc3ea7e (diff) | |
download | qt-creator-d573aebf1248aafc13755c709c5307b9a357a560.tar.gz |
Clang: Remove pointless code
This was some intermediate state.
Change-Id: I1390d9b4721a53a08ecc6b6d346dd1e2d9468989
Reviewed-by: David Schulz <david.schulz@qt.io>
-rw-r--r-- | src/tools/clangbackend/ipcsource/clangreferencescollector.cpp | 5 |
1 files changed, 0 insertions, 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); } |