]> mj.ucw.cz Git - libucw.git/commitdiff
Gary: Remove unused gary_free()
authorMartin Mares <mj@ucw.cz>
Tue, 28 Jan 2014 15:13:01 +0000 (16:13 +0100)
committerMartin Mares <mj@ucw.cz>
Tue, 28 Jan 2014 15:13:01 +0000 (16:13 +0100)
tools/libucw.api
ucw/gary.c
ucw/gary.h

index 2d48c08d584105fb0abeddb8a370abdba49b18a2..1df6bfbaf6b08e8660797428a980d1fc6551a211 100644 (file)
@@ -208,7 +208,6 @@ bget_varint_slow
 bput_varint_slow
 # ucw/gary.h
 gary_init
-gary_free
 gary_set_size
 gary_push_helper
 gary_fix
index 69adde7efac86c8e602a49eb17248156f440ffe4..7eb8cabcb08b026b9a7965f936932cd98f4d1e8d 100644 (file)
@@ -24,12 +24,6 @@ gary_init(size_t elt_size, size_t num_elts, int zeroed)
   return GARY_BODY(h);
 }
 
-void
-gary_free(void *array)
-{
-  xfree(GARY_HDR(array));
-}
-
 static struct gary_hdr *
 gary_realloc(struct gary_hdr *h, size_t n)
 {
index 600dd5007ab65a5bd2fdda2c36f7da92c6c83b24..fc19ae6d0e59a98e4d7a93463204324d8f99e7e4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *     UCW Library -- A simple growing array of an arbitrary type
  *
- *     (c) 2010--2013 Martin Mares <mj@ucw.cz>
+ *     (c) 2010--2014 Martin Mares <mj@ucw.cz>
  */
 
 #ifndef _UCW_GARY_H
@@ -9,7 +9,6 @@
 
 #ifdef CONFIG_UCW_CLEAN_ABI
 #define gary_fix ucw_gary_fix
-#define gary_free ucw_gary_free
 #define gary_init ucw_gary_init
 #define gary_push_helper ucw_gary_push_helper
 #define gary_set_size ucw_gary_set_size
@@ -49,7 +48,6 @@ struct gary_hdr {
 
 /* Internal functions */
 void *gary_init(size_t elt_size, size_t num_elts, int zeroed);
-void gary_free(void *array);
 void *gary_set_size(void *array, size_t n);
 void *gary_push_helper(void *array, size_t n, byte **cptr);
 void *gary_fix(void *array);