forked from qt-creator/qt-creator
Clang: Remove pointless code
This was some intermediate state. Change-Id: I1390d9b4721a53a08ecc6b6d346dd1e2d9468989 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user