diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-21 12:45:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-21 12:45:10 +0400 |
commit | 13bde6645bd2373c444279aff270a03ea92eef36 (patch) | |
tree | 79b2dd4cee155ec25eb4ed8184a8edc530d2c52b /source/blender/blenlib/intern/BLI_args.c | |
parent | cd6b27f2b58aff46c9431bf7621e19bdb1b0b4c2 (diff) |
code cleanup: remove callbacks only added to wrap MEM_freeN
Diffstat (limited to 'source/blender/blenlib/intern/BLI_args.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_args.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/blenlib/intern/BLI_args.c b/source/blender/blenlib/intern/BLI_args.c index 6a5952465fe..fdef0d69539 100644 --- a/source/blender/blenlib/intern/BLI_args.c +++ b/source/blender/blenlib/intern/BLI_args.c @@ -129,14 +129,9 @@ bArgs *BLI_argsInit(int argc, const char **argv) return ba; } -static void freeItem(void *val) -{ - MEM_freeN(val); -} - void BLI_argsFree(struct bArgs *ba) { - BLI_ghash_free(ba->items, freeItem, freeItem); + BLI_ghash_free(ba->items, MEM_freeN, MEM_freeN); MEM_freeN(ba->passes); BLI_freelistN(&ba->docs); MEM_freeN(ba); |