aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/strings.c
diff options
context:
space:
mode:
authorDaniel Fairhead <daniel.fairhead@om.org>2014-12-10 07:34:59 +0000
committerDaniel Fairhead <daniel.fairhead@om.org>2014-12-12 08:11:47 +0000
commitf8e3cfe220ab1e0293781720520b7844f5351bd4 (patch)
tree9c200904a38af1536a2566663b3e135430e5ba44 /src/nvim/strings.c
parentb11ada1aba4c6d15128446b9669b5993ce937d11 (diff)
downloadrneovim-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.c27
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)