From c3f4a1c31f157a3fa67a88c56c623095b56c9b2b Mon Sep 17 00:00:00 2001 From: eidheim Date: Thu, 26 May 2016 13:51:49 +0200 Subject: [PATCH] Removed redundant if expression --- src/source_clang.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/source_clang.cc b/src/source_clang.cc index 1353b39..c6e5900 100644 --- a/src/source_clang.cc +++ b/src/source_clang.cc @@ -1119,8 +1119,6 @@ Source::ClangViewAutocomplete(file_path, language) { return methods; } auto cxx_methods=clang_tokens->get_cxx_methods(); - if(cxx_methods.size()==0) - return methods; for(auto &method: cxx_methods) { std::string row=std::to_string(method.second.line)+": "+Glib::Markup::escape_text(method.first); //Add bold method token