Changeset: b539ed244382 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b539ed244382
Modified Files:
        gdk/gdk_align.c
        gdk/gdk_private.h
Branch: default
Log Message:

Remmo unused function VIEWdestroy.


diffs (60 lines):

diff --git a/gdk/gdk_align.c b/gdk/gdk_align.c
--- a/gdk/gdk_align.c
+++ b/gdk/gdk_align.c
@@ -335,44 +335,3 @@ BATmaterialize(BAT *b, BUN cap)
 
        return GDK_SUCCEED;
 }
-
-/*
- * Destroy a view.
- */
-void
-VIEWdestroy(BAT *b)
-{
-       assert(isVIEW(b));
-       bat tp = 0, tvp = 0;
-
-       /* remove any leftover private hash structures */
-       HASHdestroy(b);
-       OIDXdestroy(b);
-       STRMPdestroy(b);
-       RTREEdestroy(b);
-
-       MT_lock_set(&b->theaplock);
-       PROPdestroy_nolock(b);
-       /* heaps that are left after VIEWunlink are ours, so need to be
-        * destroyed (and files deleted) */
-       if (b->theap) {
-               tp = b->theap->parentid;
-               HEAPdecref(b->theap, tp == b->batCacheid);
-               b->theap = NULL;
-       }
-       if (b->tvheap) {
-               /* should never happen: if this heap exists, then it was
-                * our own (not a view), and then it doesn't make sense
-                * that the offset heap was a view (at least one of them
-                * had to be) */
-               tvp = b->tvheap->parentid;
-               HEAPdecref(b->tvheap, tvp == b->batCacheid);
-               b->tvheap = NULL;
-       }
-       MT_lock_unset(&b->theaplock);
-       if (tp != 0 && tp != b->batCacheid)
-               BBPrelease(tp);
-       if (tvp != 0 && tvp != b->batCacheid)
-               BBPrelease(tvp);
-       BATfree(b);
-}
diff --git a/gdk/gdk_private.h b/gdk/gdk_private.h
--- a/gdk/gdk_private.h
+++ b/gdk/gdk_private.h
@@ -260,8 +260,6 @@ gdk_return TMcommit(void)
 gdk_return unshare_varsized_heap(BAT *b)
        __attribute__((__warn_unused_result__))
        __attribute__((__visibility__("hidden")));
-void VIEWdestroy(BAT *b)
-       __attribute__((__visibility__("hidden")));
 BAT *virtualize(BAT *bn)
        __attribute__((__visibility__("hidden")));
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to