diff options
author | Daniel Fairhead <daniel.fairhead@om.org> | 2014-12-10 07:34:59 +0000 |
---|---|---|
committer | Daniel Fairhead <daniel.fairhead@om.org> | 2014-12-12 08:11:47 +0000 |
commit | f8e3cfe220ab1e0293781720520b7844f5351bd4 (patch) | |
tree | 9c200904a38af1536a2566663b3e135430e5ba44 /src/nvim/strings.c | |
parent | b11ada1aba4c6d15128446b9669b5993ce937d11 (diff) | |
download | rneovim-f8e3cfe220ab1e0293781720520b7844f5351bd4.tar.gz rneovim-f8e3cfe220ab1e0293781720520b7844f5351bd4.tar.bz2 rneovim-f8e3cfe220ab1e0293781720520b7844f5351bd4.zip |
strings.c: replace copy_spaces, copy_chars with equivalent memset.
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r-- | src/nvim/strings.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c index 1e619b1c6e..25e4a6c93b 100644 --- a/src/nvim/strings.c +++ b/src/nvim/strings.c @@ -288,33 +288,6 @@ char_u *strup_save(const char_u *orig) } /* - * copy a space a number of times - */ -void copy_spaces(char_u *ptr, size_t count) - FUNC_ATTR_NONNULL_ALL -{ - size_t i = count; - char_u *p = ptr; - - while (i--) - *p++ = ' '; -} - -/* - * Copy a character a number of times. - * Does not work for multi-byte characters! - */ -void copy_chars(char_u *ptr, size_t count, char_u c) - FUNC_ATTR_NONNULL_ALL -{ - size_t i = count; - char_u *p = ptr; - - while (i--) - *p++ = c; -} - -/* * delete spaces at the end of a string */ void del_trailing_spaces(char_u *ptr) |