Drop duplicate and always true condition

This block is only entered if this->owner is true.
main
Christian Göttsche 5 years ago committed by cgzones
parent c98d4577c9
commit 1533ea88a6
  1. 4
      Vector.c

@ -264,9 +264,7 @@ void Vector_set(Vector* this, int idx, void* data_) {
if (this->owner) {
Object* removed = this->array[idx];
assert (removed != NULL);
if (this->owner) {
Object_delete(removed);
}
Object_delete(removed);
}
}
this->array[idx] = data;

Loading…
Cancel
Save