aboutsummaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-26 16:22:31 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-26 18:29:17 -0300
commit83161200c473293b2d8d69e3ee1899c6a7199e38 (patch)
tree8223ec9275425e55acfb3cf0ce61948c59b090f6 /src/vim.h
parentbd78282940b246bad34c629fa81150d4073cc330 (diff)
downloadrneovim-83161200c473293b2d8d69e3ee1899c6a7199e38.tar.gz
rneovim-83161200c473293b2d8d69e3ee1899c6a7199e38.tar.bz2
rneovim-83161200c473293b2d8d69e3ee1899c6a7199e38.zip
Remove MEM_PROFILE related code
Code around `#ifdef MEM_PROFILE` was used to profile vim's memory comsumption. It's very likely broken as new code is using malloc() and free() directly. In this day and age, valgrind can solve in a much reliable way what this code was trying to do.
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/vim.h b/src/vim.h
index 7818855da2..f8ec4c5714 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1388,11 +1388,7 @@ typedef int VimClipboard; /* This is required for the prototypes. */
/* Note: a NULL argument for vim_realloc() is not portable, don't use it. */
-#if defined(MEM_PROFILE)
-# define vim_realloc(ptr, size) mem_realloc((ptr), (size))
-#else
-# define vim_realloc(ptr, size) realloc((ptr), (size))
-#endif
+#define vim_realloc(ptr, size) realloc((ptr), (size))
/*
* The following macros stop display/event loop nesting at the wrong time.