Small code cleanups

This commit is contained in:
Maxime Coste 2017-01-08 23:26:15 +00:00
parent dcd8f6ef01
commit 9f0bca53c4
2 changed files with 1 additions and 3 deletions

View File

@ -386,8 +386,7 @@ String expand_impl(StringView str, const Context& context,
String expand(StringView str, const Context& context, String expand(StringView str, const Context& context,
const ShellContext& shell_context) const ShellContext& shell_context)
{ {
return expand_impl(str, context, shell_context, return expand_impl(str, context, shell_context, [](String s){ return s; });
[](String s) { return std::move(s); });
} }
String expand(StringView str, const Context& context, String expand(StringView str, const Context& context,

View File

@ -936,7 +936,6 @@ private:
LineEditor m_line_editor; LineEditor m_line_editor;
bool m_autoshowcompl; bool m_autoshowcompl;
PromptFlags m_flags; PromptFlags m_flags;
bool m_history_drop_blank_prefix;
using History = Vector<String, MemoryDomain::History>; using History = Vector<String, MemoryDomain::History>;
static UnorderedMap<String, History, MemoryDomain::History> ms_history; static UnorderedMap<String, History, MemoryDomain::History> ms_history;