summaryrefslogtreecommitdiffstats
path: root/Vector.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-10-27 11:02:34 +0100
committercgzones <cgzones@googlemail.com>2020-10-27 18:00:43 +0100
commit1533ea88a6b7e4206e21e6405a253f8f62a81cd8 (patch)
tree8b44dda9832aef6416cd2bba101364c07de7a2cd /Vector.c
parentc98d4577c998047d7bd32c18b3802dd2bc09a634 (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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Vector.c b/Vector.c
index 4ed0d53d..77f56a88 100644
--- a/Vector.c
+++ b/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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy