mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-11 13:07:08 +03:00
Drop duplicate and always true condition
This block is only entered if this->owner is true.
This commit is contained in:
parent
c98d4577c9
commit
1533ea88a6
4
Vector.c
4
Vector.c
@ -264,9 +264,7 @@ void Vector_set(Vector* this, int idx, void* data_) {
|
|||||||
if (this->owner) {
|
if (this->owner) {
|
||||||
Object* removed = this->array[idx];
|
Object* removed = this->array[idx];
|
||||||
assert (removed != NULL);
|
assert (removed != NULL);
|
||||||
if (this->owner) {
|
Object_delete(removed);
|
||||||
Object_delete(removed);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this->array[idx] = data;
|
this->array[idx] = data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user