Commit 78ced14c authored by Tobias Hunger's avatar Tobias Hunger

CppEditor: Remove dead code

Change-Id: If65f43e232c83924a746bcbb30ced5db57dd547b
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
Reviewed-by: Nikolai Kosjar's avatarNikolai Kosjar <nikolai.kosjar@qt.io>
parent f068f598
......@@ -2446,8 +2446,6 @@ void InsertDeclFromDef::match(const CppQuickFixInterface &interface, QuickFixOpe
if (DeclaratorIdAST *declId = node->asDeclaratorId()) {
if (file->isCursorOn(declId)) {
if (FunctionDefinitionAST *candidate = path.at(idx - 2)->asFunctionDefinition()) {
if (funDef)
return;
funDef = candidate;
break;
}
......
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