From 88b03dd93a8240059a0d0f52365ba6d2245dafcf Mon Sep 17 00:00:00 2001 From: Philip Top Date: Sat, 5 Oct 2024 08:52:02 -0700 Subject: [PATCH] remove unused method call in help formatter --- include/CLI/StringTools.hpp | 3 --- include/CLI/impl/StringTools_inl.hpp | 17 ----------------- 2 files changed, 20 deletions(-) diff --git a/include/CLI/StringTools.hpp b/include/CLI/StringTools.hpp index d66319326..e2df32fb6 100644 --- a/include/CLI/StringTools.hpp +++ b/include/CLI/StringTools.hpp @@ -141,9 +141,6 @@ inline std::string trim_copy(const std::string &str, const std::string &filter) std::string s = str; return trim(s, filter); } -/// Print a two part "help" string -CLI11_INLINE std::ostream & -format_help(std::ostream &out, std::string name, const std::string &description, std::size_t wid); /// Print subcommand aliases CLI11_INLINE std::ostream &format_aliases(std::ostream &out, const std::vector &aliases, std::size_t wid); diff --git a/include/CLI/impl/StringTools_inl.hpp b/include/CLI/impl/StringTools_inl.hpp index 580181597..1dffb126d 100644 --- a/include/CLI/impl/StringTools_inl.hpp +++ b/include/CLI/impl/StringTools_inl.hpp @@ -95,23 +95,6 @@ CLI11_INLINE std::string fix_newlines(const std::string &leader, std::string inp return input; } -CLI11_INLINE std::ostream & -format_help(std::ostream &out, std::string name, const std::string &description, std::size_t wid) { - - if(!description.empty()) { - if(name.length() >= wid) - out << "\n" << std::setw(static_cast(wid)) << ""; - for(const char c : description) { - out.put(c); - if(c == '\n') { - out << std::setw(static_cast(wid)) << ""; - } - } - } - out << "\n"; - return out; -} - CLI11_INLINE std::ostream &format_aliases(std::ostream &out, const std::vector &aliases, std::size_t wid) { if(!aliases.empty()) { out << std::setw(static_cast(wid)) << " aliases: ";