diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-27 11:02:34 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-10-27 18:00:43 +0100 |
commit | 1533ea88a6b7e4206e21e6405a253f8f62a81cd8 (patch) | |
tree | 8b44dda9832aef6416cd2bba101364c07de7a2cd /Vector.c | |
parent | c98d4577c998047d7bd32c18b3802dd2bc09a634 (diff) |
Drop duplicate and always true condition
This block is only entered if this->owner is true.
Diffstat (limited to 'Vector.c')
-rw-r--r-- | Vector.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |