From 59baac522ee8302cff0397310304d5c841e3cd2f Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 13 Jan 2024 08:24:00 -0800 Subject: [PATCH] Remove unused functions --- include/fmt/ranges.h | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index f66b34102667..0f78d484e044 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -18,29 +18,6 @@ FMT_BEGIN_NAMESPACE namespace detail { -template -auto copy(const Range& range, OutputIt out) -> OutputIt { - for (auto it = range.begin(), end = range.end(); it != end; ++it) - *out++ = *it; - return out; -} - -template -auto copy(const char* str, OutputIt out) -> OutputIt { - while (*str) *out++ = *str++; - return out; -} - -template auto copy(char ch, OutputIt out) -> OutputIt { - *out++ = ch; - return out; -} - -template auto copy(wchar_t ch, OutputIt out) -> OutputIt { - *out++ = ch; - return out; -} - template class is_map { template static auto check(U*) -> typename U::mapped_type; template static void check(...);