diff --git a/src/libs/cplusplus/InsertionPointLocator.cpp b/src/libs/cplusplus/InsertionPointLocator.cpp index aefcdc051be4116176d0e95d6d176023134354dd..c031e9322d90228f008e90a83805310a15a3c052 100644 --- a/src/libs/cplusplus/InsertionPointLocator.cpp +++ b/src/libs/cplusplus/InsertionPointLocator.cpp @@ -291,18 +291,13 @@ InsertionLocation InsertionPointLocator::methodDeclarationInClass( } } +/// Currently, we return the end of fileName.cpp QList<InsertionLocation> InsertionPointLocator::methodDefinition( - const QString &fileName, DeclarationAST *prevDecl, DeclarationAST *nextDecl) const + const QString &/*fileName*/) const { QList<InsertionLocation> result; - // option 1: after the prevDecl - // option 2: before the nextDecl - - // option 3: inline in fileName (if fileName is a .h file) - - // option 4: at the end of fileName.cpp (if fileName is not a .cpp file) return result; } diff --git a/src/libs/cplusplus/InsertionPointLocator.h b/src/libs/cplusplus/InsertionPointLocator.h index 424e57b72f737c1cb82fdfaed2df69efc7d32973..5436d36eb601956d180a2e11df684fd0250a4b30 100644 --- a/src/libs/cplusplus/InsertionPointLocator.h +++ b/src/libs/cplusplus/InsertionPointLocator.h @@ -95,9 +95,7 @@ public: const Class *clazz, AccessSpec xsSpec) const; - QList<InsertionLocation> methodDefinition(const QString &fileName, - CPlusPlus::DeclarationAST *prevDecl, - CPlusPlus::DeclarationAST *nextDecl) const; + QList<InsertionLocation> methodDefinition(const QString &fileName) const; private: Snapshot m_snapshot;