diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-25 16:45:35 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-25 17:04:28 +0100 |
commit | cb2c8f71f44f8c628f57e6ac3cadca57642c7682 (patch) | |
tree | 699e11a5a4c6e21d4eaa1d1b8ae0d232598505a2 /AK | |
parent | 89d3b09638ea6f810b3b07d417367bc3458ce98b (diff) | |
download | serenity-cb2c8f71f44f8c628f57e6ac3cadca57642c7682.zip |
AK: Remove custom %b format string specifier
This was a non-standard specifier alias for %02x. This patch replaces
all uses of it with new-style formatting functions instead.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/PrintfImplementation.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/AK/PrintfImplementation.h b/AK/PrintfImplementation.h index 0b202a2b79..fa87ddc06f 100644 --- a/AK/PrintfImplementation.h +++ b/AK/PrintfImplementation.h @@ -390,10 +390,6 @@ struct PrintfImpl { { return print_hex(m_putch, m_bufptr, NextArgument<int>()(ap), false, state.alternate_form, false, true, 4); } - ALWAYS_INLINE int format_b(const ModifierState& state, ArgumentListRefT ap) const - { - return print_hex(m_putch, m_bufptr, NextArgument<int>()(ap), false, state.alternate_form, false, true, 2); - } ALWAYS_INLINE int format_c(const ModifierState& state, ArgumentListRefT ap) const { char c = NextArgument<int>()(ap); @@ -502,7 +498,6 @@ ALWAYS_INLINE int printf_internal(PutChFunc putch, char* buffer, const char*& fm PRINTF_IMPL_DELEGATE_TO_IMPL(P); PRINTF_IMPL_DELEGATE_TO_IMPL(Q); PRINTF_IMPL_DELEGATE_TO_IMPL(X); - PRINTF_IMPL_DELEGATE_TO_IMPL(b); PRINTF_IMPL_DELEGATE_TO_IMPL(c); PRINTF_IMPL_DELEGATE_TO_IMPL(d); #ifndef KERNEL |