Skip to content

Commit 7906cb0

Browse files
committed
Remove deprecated aliases
1 parent e719c43 commit 7906cb0

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

include/fmt/base.h

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,6 @@
201201
# define FMT_NODISCARD
202202
#endif
203203

204-
#ifdef FMT_DEPRECATED
205-
// Use the provided definition.
206-
#elif FMT_HAS_CPP14_ATTRIBUTE(deprecated)
207-
# define FMT_DEPRECATED [[deprecated]]
208-
#else
209-
# define FMT_DEPRECATED /* deprecated */
210-
#endif
211-
212204
#if FMT_GCC_VERSION || FMT_CLANG_VERSION
213205
# define FMT_VISIBILITY(value) __attribute__((visibility(value)))
214206
#else
@@ -2677,13 +2669,9 @@ class context {
26772669
FMT_NO_UNIQUE_ADDRESS detail::locale_ref loc_;
26782670

26792671
public:
2680-
/// The character type for the output.
2681-
using char_type = char;
2682-
2672+
using char_type = char; //< The character type for the output.
26832673
using iterator = appender;
26842674
using format_arg = basic_format_arg<context>;
2685-
using parse_context_type FMT_DEPRECATED = parse_context<>;
2686-
template <typename T> using formatter_type FMT_DEPRECATED = formatter<T>;
26872675
enum { builtin_types = FMT_BUILTIN_TYPES };
26882676

26892677
/// Constructs a `context` object. References to the arguments are stored

include/fmt/format.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@
118118
# define FMT_NOINLINE
119119
#endif
120120

121+
#ifdef FMT_DEPRECATED
122+
// Use the provided definition.
123+
#elif FMT_HAS_CPP14_ATTRIBUTE(deprecated)
124+
# define FMT_DEPRECATED [[deprecated]]
125+
#else
126+
# define FMT_DEPRECATED /* deprecated */
127+
#endif
128+
121129
// Detect constexpr std::string.
122130
#if !FMT_USE_CONSTEVAL
123131
# define FMT_USE_CONSTEXPR_STRING 0

0 commit comments

Comments
 (0)