about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-07-14 08:23:52 +0000
committerEric Wong <normalperson@yhbt.net>2013-07-14 08:29:02 +0000
commit800bb2057ce8559eede740816be06cf60d959f39 (patch)
treeb44827d35f417d21141a8e9071dbf4e04f1d72c9
parent4edbdd6ba3686a60a8ddeed8f6f26e55abf0b207 (diff)
downloadcmogstored-800bb2057ce8559eede740816be06cf60d959f39.tar.gz
This function is no longer used as we now attempt to reattach
rbufs to the TLS space of each thread.
-rw-r--r--alloc.c6
-rw-r--r--cmogstored.h1
2 files changed, 0 insertions, 7 deletions
diff --git a/alloc.c b/alloc.c
index 7a14173..ba48ff7 100644
--- a/alloc.c
+++ b/alloc.c
@@ -178,12 +178,6 @@ void mog_rbuf_free(struct mog_rbuf *rbuf)
         free(rbuf);
 }
 
-void mog_rbuf_free_and_null(struct mog_rbuf **ptrptr)
-{
-        mog_rbuf_free(*ptrptr);
-        *ptrptr = NULL;
-}
-
 /* retrieves the per-thread fsbuf and sets size to the value of fsbuf_size */
 void *mog_fsbuf_get(size_t *size)
 {
diff --git a/cmogstored.h b/cmogstored.h
index c3ebf80..32868cb 100644
--- a/cmogstored.h
+++ b/cmogstored.h
@@ -342,7 +342,6 @@ struct mog_rbuf *mog_rbuf_get(size_t size);
 struct mog_rbuf *mog_rbuf_detach(struct mog_rbuf *rbuf);
 struct mog_rbuf *mog_rbuf_grow(struct mog_rbuf *);
 void mog_rbuf_free(struct mog_rbuf *);
-void mog_rbuf_free_and_null(struct mog_rbuf **);
 void mog_rbuf_reattach_and_null(struct mog_rbuf **);
 void *mog_fsbuf_get(size_t *size);
 void mog_alloc_quit(void);