Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-05-21 12:45:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-21 12:45:10 +0400
commit13bde6645bd2373c444279aff270a03ea92eef36 (patch)
tree79b2dd4cee155ec25eb4ed8184a8edc530d2c52b /source/blender/blenlib
parentcd6b27f2b58aff46c9431bf7621e19bdb1b0b4c2 (diff)
code cleanup: remove callbacks only added to wrap MEM_freeN
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/BLI_args.c7
-rw-r--r--source/blender/blenlib/intern/BLI_ghash.c2
2 files changed, 2 insertions, 7 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);
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c
index df3bfc7ef1b..b8e3d70ce99 100644
--- a/source/blender/blenlib/intern/BLI_ghash.c
+++ b/source/blender/blenlib/intern/BLI_ghash.c
@@ -410,5 +410,5 @@ int BLI_ghashutil_paircmp(const void *a, const void *b)
void BLI_ghashutil_pairfree(void *ptr)
{
- MEM_freeN((void *)ptr);
+ MEM_freeN(ptr);
}