diff --git a/src/text.cpp b/src/text.cpp index a68091e85..7fd2e869a 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -475,37 +475,6 @@ const char* optionalBlankLine () return context.verbose ("blank") ? newline : noline; } -//////////////////////////////////////////////////////////////////////////////// -void guess ( - const std::string& type, - std::vector& options, - std::string& candidate) -{ - std::vector matches; - autoComplete (candidate, options, matches, - context.config.getInteger ("abbreviation.minimum")); - if (1 == matches.size ()) - candidate = matches[0]; - - else if (0 == matches.size ()) - candidate = ""; - - else - { - std::sort (matches.begin (), matches.end ()); - - std::string error = format (STRING_TEXT_AMBIGUOUS, type, candidate); - for (size_t i = 0; i < matches.size (); ++i) - { - if (i) - error += ", "; - error += matches[i]; - } - - throw error; - } -} - //////////////////////////////////////////////////////////////////////////////// bool nontrivial (const std::string& input) { diff --git a/src/text.h b/src/text.h index bb4aeb2ed..5e3596e7c 100644 --- a/src/text.h +++ b/src/text.h @@ -50,7 +50,6 @@ std::string ucFirst (const std::string&); const std::string str_replace (std::string&, const std::string&, const std::string&); const std::string str_replace (const std::string&, const std::string&, const std::string&); const char* optionalBlankLine (); -void guess (const std::string&, std::vector&, std::string&); bool nontrivial (const std::string&); bool digitsOnly (const std::string&); bool noSpaces (const std::string&);