diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-14 17:21:43 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-14 17:23:51 -0500 |
commit | 87aaa8e837d873577ee6a908a387f40e3548bcb6 (patch) | |
tree | a68b109b2d9c69be6010d4ace74e9feebab4f262 /src/nvim/fileio.c | |
parent | 35874208b86d52b22476ce2a7770b5317fea8694 (diff) | |
download | rneovim-87aaa8e837d873577ee6a908a387f40e3548bcb6.tar.gz rneovim-87aaa8e837d873577ee6a908a387f40e3548bcb6.tar.bz2 rneovim-87aaa8e837d873577ee6a908a387f40e3548bcb6.zip |
globals: eliminate "enc_utf8" macro
"enc_utf8" macro evaluates to "true".
Continue dead code removal, started in https://github.com/neovim/neovim/pull/13275.
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 49de0f3bf8..6ee3a3f579 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -1310,14 +1310,11 @@ retry: char_u *dest; char_u *tail = NULL; - /* - * "enc_utf8" set: Convert Unicode or Latin1 to UTF-8. - * "enc_utf8" not set: Convert Unicode to Latin1. - * Go from end to start through the buffer, because the number - * of bytes may increase. - * "dest" points to after where the UTF-8 bytes go, "p" points - * to after the next character to convert. - */ + // Convert Unicode or Latin1 to UTF-8. + // Go from end to start through the buffer, because the number + // of bytes may increase. + // "dest" points to after where the UTF-8 bytes go, "p" points + // to after the next character to convert. dest = ptr + real_size; if (fio_flags == FIO_LATIN1 || fio_flags == FIO_UTF8) { p = ptr + size; |