aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/strings.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-12-12 10:21:21 -0500
committerJustin M. Keyes <justinkz@gmail.com>2014-12-12 10:21:21 -0500
commitc7292866043cc426d394aa6b586168dc2112daef (patch)
tree511b373d062a3064205b1cfd8005a8a61f24c4d6 /src/nvim/strings.c
parentd5741e512402b13f9b0f75e081bf1027e1c577f0 (diff)
parentf8e3cfe220ab1e0293781720520b7844f5351bd4 (diff)
downloadrneovim-c7292866043cc426d394aa6b586168dc2112daef.tar.gz
rneovim-c7292866043cc426d394aa6b586168dc2112daef.tar.bz2
rneovim-c7292866043cc426d394aa6b586168dc2112daef.zip
Merge pull request #1635 from danthedeckie/master
replace copy_spaces and copy_chars functions 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)