From 7906704e3b9cd3ac3f43e81f456f3e0f53989ca9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 29 Feb 2016 22:16:59 +0000 Subject: [PATCH] Remove code that should not have been commited --- src/normal.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/normal.cc b/src/normal.cc index 4496196a..4d95ff53 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -182,11 +182,7 @@ void goto_commands(Context& context, NormalParams params) if (not buffer_dir.empty()) paths.insert(paths.begin(), buffer_dir.str()); - const auto& suffixes = context.options()["suffixes"].get>(); String path = find_file(filename, paths); - for (auto it = suffixes.begin(); path.empty() and it != suffixes.end(); ++it) - path = find_file(filename + *it, paths); - if (path.empty()) throw runtime_error(format("unable to find file '{}'", filename));