Browse Source

Remove useless code from `ArrayList`

core_refactor
Anton Tarasenko 2 years ago
parent
commit
4db04c726c
  1. 9
      sources/Data/Collections/ArrayList.uc

9
sources/Data/Collections/ArrayList.uc

@ -247,20 +247,15 @@ public final function ArrayList RemoveIndex(int index)
}
/**
* Validates item at `index`: in case it was erroneously deallocated while
* being stored in caller `ArrayList` - forgets stored `AcediaObject`
* reference.
* Validates item at `index`: whether it fits in current array bounds.
*
* @param index Index of an item to validate/
* @param index Index of an item to validate.
* @return `true` if `index` is valid for `storedObjects` array.
*/
private final function bool ValidateIndex(int index)
{
local AcediaObject item;
if (index < 0) return false;
if (index >= storedObjects.length) return false;
item = storedObjects[index];
return true;
}

Loading…
Cancel
Save