diff options
author | John Schmidt <john.schmidt.h@gmail.com> | 2014-04-18 01:52:48 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-19 09:36:17 -0300 |
commit | 63cc8b6934e74da2fd13aa5d9f2254c257a45b1c (patch) | |
tree | 0af45b07e1d92d19529b69172431606def237102 /src/memory.c | |
parent | 204d3dfafcc5b285d112e023dd5e5b6f1e861146 (diff) | |
download | rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.tar.gz rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.tar.bz2 rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.zip |
Remove `lalloc_clear`
Use `xcalloc` instead. Change some local variables
to avoid casting.
Diffstat (limited to 'src/memory.c')
-rw-r--r-- | src/memory.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/memory.c b/src/memory.c index 5a5a22aa1e..16e98dae2d 100644 --- a/src/memory.c +++ b/src/memory.c @@ -72,14 +72,6 @@ char_u *alloc_clear(unsigned size) return (char_u *)xcalloc(1, (size_t)size); } -/* - * Allocate memory like lalloc() and set all bytes to zero. - */ -char_u *lalloc_clear(long_u size, int message) -{ - return (char_u *)xcalloc(1, (size_t)size); -} - /// Try to free memory. Used when trying to recover from out of memory errors. /// @see {xmalloc} static void try_to_free_memory() |