mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 13:08:33 +00:00
*: Remove useless asserts
This commit is contained in:
@@ -609,7 +609,6 @@ int json_decode_string(const char *const buf, const size_t buf_len,
|
||||
EMSG(_("E474: Attempt to decode a blank string"));
|
||||
return FAIL;
|
||||
}
|
||||
assert(STRCMP(p_enc, "utf-8") == 0);
|
||||
int ret = OK;
|
||||
ValuesStack stack = KV_INITIAL_VALUE;
|
||||
ContainerStack container_stack = KV_INITIAL_VALUE;
|
||||
|
@@ -564,7 +564,6 @@ static inline int convert_to_json_string(garray_T *const gap,
|
||||
} else {
|
||||
size_t utf_len = len;
|
||||
char *tofree = NULL;
|
||||
assert(STRCMP(p_enc, "utf-8") == 0);
|
||||
size_t str_len = 0;
|
||||
// Encode character as \uNNNN if
|
||||
// 1. It is an ASCII control character (0x0 .. 0x1F; 0x7F not
|
||||
|
@@ -2920,8 +2920,6 @@ shada_write_file_nomerge: {}
|
||||
verbose_leave();
|
||||
}
|
||||
|
||||
assert(STRCMP(p_enc, "utf-8") == 0);
|
||||
|
||||
const ShaDaWriteResult sw_ret = shada_write(&sd_writer, (nomerge
|
||||
? NULL
|
||||
: &sd_reader));
|
||||
|
Reference in New Issue
Block a user