Remove code that should not have been commited

This commit is contained in:
Maxime Coste 2016-02-29 22:16:59 +00:00
parent 2214421df5
commit 7906704e3b

View File

@ -182,11 +182,7 @@ void goto_commands(Context& context, NormalParams params)
if (not buffer_dir.empty()) if (not buffer_dir.empty())
paths.insert(paths.begin(), buffer_dir.str()); paths.insert(paths.begin(), buffer_dir.str());
const auto& suffixes = context.options()["suffixes"].get<Vector<String, MemoryDomain::Options>>();
String path = find_file(filename, paths); 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()) if (path.empty())
throw runtime_error(format("unable to find file '{}'", filename)); throw runtime_error(format("unable to find file '{}'", filename));