From c707b0eb52c95930496325cedd23a4f14f47e65b Mon Sep 17 00:00:00 2001 From: Lukas Beckmann Date: Sat, 18 Feb 2023 21:13:02 +0100 Subject: fix some assertions in Vector_isConsistent and Vector_splice. --- Vector.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'Vector.c') diff --git a/Vector.c b/Vector.c index eddbc9a6..a4dc137f 100644 --- a/Vector.c +++ b/Vector.c @@ -62,14 +62,6 @@ static bool Vector_isConsistent(const Vector* this) { assert(this->items <= this->arraySize); assert(!Vector_isDirty(this)); - if (this->owner) { - for (int i = 0; i < this->items; i++) { - if (!this->array[i]) { - return false; - } - } - } - return true; } @@ -396,7 +388,7 @@ int Vector_indexOf(const Vector* this, const void* search_, Object_Compare compa void Vector_splice(Vector* this, Vector* from) { assert(Vector_isConsistent(this)); assert(Vector_isConsistent(from)); - assert(!(this->owner && from->owner)); + assert(!this->owner); int olditems = this->items; this->items += from->items; -- cgit v1.2.3