From 4a795920e3e3fbef8c55956210b698f49d90f091 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Tue, 8 Mar 2016 03:48:41 +0000 Subject: Attempt to fix the Ubuntu buildbot by making FindLongestCommandWord a free template function in lldb_private llvm-svn: 262905 --- lldb/source/Interpreter/CommandInterpreter.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'lldb/source/Interpreter/CommandInterpreter.cpp') diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index bf8ac43b105..bfbfabbd469 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -1200,22 +1200,6 @@ CommandInterpreter::GetAliasHelp (const char *alias_name, const char *command_na help_string.Printf ("'"); } -template -size_t -CommandInterpreter::FindLongestCommandWord (std::map &dict) -{ - auto end = dict.end(); - size_t max_len = 0; - - for (auto pos = dict.begin(); pos != end; ++pos) - { - size_t len = pos->first.size(); - if (max_len < len) - max_len = len; - } - return max_len; -} - void CommandInterpreter::GetHelp (CommandReturnObject &result, uint32_t cmd_types) -- cgit v1.2.3