refactor: remove CH_FOLD macro

It should not be needed as utf_fold should already work on its own.
This commit is contained in:
dundargoc
2024-07-09 16:34:43 +02:00
committed by dundargoc
parent 4208223175
commit 3c5abf01bf
2 changed files with 2 additions and 12 deletions

View File

@@ -7,16 +7,6 @@
#include "nvim/option_vars.h"
#include "nvim/strings.h" // IWYU pragma: keep
/// Return the folded-case equivalent of the given character
///
/// @param[in] c Character to transform.
///
/// @return Folded variant.
#define CH_FOLD(c) \
utf_fold((sizeof(c) == sizeof(char)) \
? ((int)(uint8_t)(c)) \
: ((int)(c)))
/// Flags for vim_str2nr()
typedef enum {
STR2NR_DEC = 0,