aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
diff options
context:
space:
mode:
authorCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2023-11-09 10:30:38 +0100
committerCristián Maureira-Fredes <cristian.maureira-fredes@qt.io>2023-11-09 11:04:16 +0100
commita9fac8c9a16c536db36ac2f14a5f9d38e06e6b4c (patch)
tree4669a355e262070b55479e1fd2ea9c7f776d6aa7 /sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
parent4b20989319cd46e0bccca577a39eb843557dd432 (diff)
apiextractor: remove unused definitionFromTypeRef
Change-Id: I551099f0d40b8abbfeba787c3378226e7958c0d8 Pick-to: 6.6 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
index 82cad52f0..57604ceac 100644
--- a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
+++ b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.cpp
@@ -744,12 +744,6 @@ void BuilderPrivate::addBaseClass(const CXCursor &cursor)
m_currentClass->addBaseClass({baseClass.first, baseClass.second, access});
}
-static inline CXCursor definitionFromTypeRef(const CXCursor &typeRefCursor)
-{
- Q_ASSERT(typeRefCursor.kind == CXCursor_TypeRef);
- return clang_getTypeDeclaration(clang_getCursorType(typeRefCursor));
-}
-
void BuilderPrivate::setFileName(const CXCursor &cursor, _CodeModelItem *item)
{
const SourceRange range = getCursorRange(cursor);