Skip to content

Commit

Permalink
Revert unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Nov 19, 2024
1 parent 077e464 commit 0243b4e
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Headers/GNUstepBase/GSIArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -574,16 +574,13 @@ GSIArrayRemoveItemsFromIndex(GSIArray array, unsigned index)
GS_STATIC_INLINE void
GSIArrayRemoveAllItems(GSIArray array)
{
if (array->count)
{
#ifndef GSI_ARRAY_NO_RELEASE
while (array->count--)
{
GSI_ARRAY_RELEASE(array, array->ptr[array->count]);
}
#endif
array->count = 0;
while (array->count--)
{
GSI_ARRAY_RELEASE(array, array->ptr[array->count]);
}
#endif
array->count = 0;
}

GS_STATIC_INLINE void
Expand Down

0 comments on commit 0243b4e

Please sign in to comment.