Browse Source

Removed redundant if expression

merge-requests/365/head
eidheim 10 years ago
parent
commit
c3f4a1c31f
  1. 2
      src/source_clang.cc

2
src/source_clang.cc

@ -1119,8 +1119,6 @@ Source::ClangViewAutocomplete(file_path, language) {
return methods; return methods;
} }
auto cxx_methods=clang_tokens->get_cxx_methods(); auto cxx_methods=clang_tokens->get_cxx_methods();
if(cxx_methods.size()==0)
return methods;
for(auto &method: cxx_methods) { for(auto &method: cxx_methods) {
std::string row=std::to_string(method.second.line)+": "+Glib::Markup::escape_text(method.first); std::string row=std::to_string(method.second.line)+": "+Glib::Markup::escape_text(method.first);
//Add bold method token //Add bold method token

Loading…
Cancel
Save