From 6cd5b4fbbd2d08c5717dacbf669fe4f3098dda81 Mon Sep 17 00:00:00 2001 From: Travis Date: Fri, 14 Aug 2020 17:25:14 -0500 Subject: [PATCH] stop setting N on a frozen container --- roaring/roaring.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/roaring/roaring.go b/roaring/roaring.go index ef92db3b2..3cccf3af1 100644 --- a/roaring/roaring.go +++ b/roaring/roaring.go @@ -3197,10 +3197,6 @@ func (c *Container) arrayRemove(v uint16) (*Container, bool) { } // removing the last item? we can just return the empty container. if c.N() == 1 { - if c.flags&(flagFrozen|flagMapped) != 0 { - fmt.Fprintf(os.Stderr, "INCONSISTENT: array remove of %d setting N in another container\n", v) - } - c.n = 0 return nil, true } c = c.Thaw() @@ -3217,10 +3213,6 @@ func (c *Container) bitmapRemove(v uint16) (*Container, bool) { } // removing the last item? we can just return the empty container. if c.N() == 1 { - if c.flags&(flagFrozen|flagMapped) != 0 { - fmt.Fprintf(os.Stderr, "INCONSISTENT: bitmap remove of %d setting N in another container\n", v) - } - c.n = 0 return nil, true } c = c.Thaw() @@ -3246,10 +3238,6 @@ func (c *Container) runRemove(v uint16) (*Container, bool) { } // removing the last item? we can just return the empty container. if c.N() == 1 { - if c.flags&(flagFrozen|flagMapped) != 0 { - fmt.Fprintf(os.Stderr, "INCONSISTENT: run remove of %d setting N in another container\n", v) - } - c.n = 0 return nil, true } c = c.Thaw()