diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-08-22 17:29:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 17:29:17 +0200 |
commit | 649dbb3b15949aee9d9e25cd39cca1e3e3a4ee45 (patch) | |
tree | dc153c0cf6ac08e6f0f5508dcc2603618f314ef6 /src/nvim/map.c | |
parent | db1b0ee3b30fd4cd323907c7f24bd575c22e68f0 (diff) | |
parent | de21e6ef3d9af96d2b71e54d8148d28b5fc9f22e (diff) | |
download | rneovim-649dbb3b15949aee9d9e25cd39cca1e3e3a4ee45.tar.gz rneovim-649dbb3b15949aee9d9e25cd39cca1e3e3a4ee45.tar.bz2 rneovim-649dbb3b15949aee9d9e25cd39cca1e3e3a4ee45.zip |
Merge pull request #15457 from bfredl/oldmap
refactor(map): remove extra-allocating map_new/map_free functions
Diffstat (limited to 'src/nvim/map.c')
-rw-r--r-- | src/nvim/map.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/nvim/map.c b/src/nvim/map.c index d956699b21..ccd332192e 100644 --- a/src/nvim/map.c +++ b/src/nvim/map.c @@ -54,19 +54,6 @@ INITIALIZER_DECLARE(T, U, __VA_ARGS__); \ __KHASH_IMPL(T##_##U##_map,, T, U, 1, T##_hash, T##_eq) \ \ - Map(T, U) *map_##T##_##U##_new() \ - { \ - Map(T, U) *rv = xcalloc(1, sizeof(Map(T, U))); \ - /* khash_t table member is zero-initialized */ \ - return rv; \ - } \ - \ - void map_##T##_##U##_free(Map(T, U) *map) \ - { \ - kh_dealloc(T##_##U##_map, &map->table); \ - xfree(map); \ - } \ - \ void map_##T##_##U##_destroy(Map(T, U) *map) \ { \ kh_dealloc(T##_##U##_map, &map->table); \ |