X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Futil.c;h=f899420b1455279aa45608dcea076635171800eb;hb=4e24d47abcb5b0e97ab13afc8f97f8fdcab14843;hp=0bc1c6c9b1ef045638d3e54fe574421cc810a82b;hpb=e6135fbeca4bbedd24b5f8c55fb765a97bdc78ad;p=bluesky.git diff --git a/bluesky/util.c b/bluesky/util.c index 0bc1c6c..f899420 100644 --- a/bluesky/util.c +++ b/bluesky/util.c @@ -53,17 +53,6 @@ gboolean bluesky_inode_is_ready(BlueSkyInode *inode) /**** Reference-counted strings. ****/ -void bluesky_mmap_unref(BlueSkyMmap *mmap) -{ - if (mmap == NULL) - return; - - if (g_atomic_int_dec_and_test(&mmap->refcount)) { - munmap((void *)mmap->addr, mmap->len); - g_free(mmap); - } -} - /* Create and return a new reference-counted string. The reference count is * initially one. The newly-returned string takes ownership of the memory * pointed at by data, and will call g_free on it when the reference count