From bc855041f3cc1b60f318a53abc244568baf10678 Mon Sep 17 00:00:00 2001 From: eidheim Date: Sat, 23 Dec 2017 15:52:10 +0100 Subject: [PATCH] Cleanup of Source->Find Documentation --- src/source_clang.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/source_clang.cc b/src/source_clang.cc index d63f488..bca4acc 100644 --- a/src/source_clang.cc +++ b/src/source_clang.cc @@ -1502,11 +1502,8 @@ Source::ClangViewRefactor::ClangViewRefactor(const boost::filesystem::path &file if(!cursor) { auto identifier=get_identifier(); - if(identifier) { - cursor=identifier.cursor.get_definition(); - if(!cursor) - cursor=identifier.cursor.get_canonical(); - } + if(identifier) + cursor=identifier.cursor.get_canonical(); } if(cursor) {