Commit d573aebf authored by Nikolai Kosjar's avatar Nikolai Kosjar

Clang: Remove pointless code

This was some intermediate state.

Change-Id: I1390d9b4721a53a08ecc6b6d346dd1e2d9468989
Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
parent 065e38f5
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment