1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 16:40:26 +02:00

Deprecated DeleteAndClearItems

This commit is contained in:
Brian Fiete 2021-01-02 09:08:25 -08:00
parent bd57172996
commit 1be37e6f24
8 changed files with 17 additions and 7 deletions

View file

@ -152,6 +152,8 @@ static
}
}
[NoShow]
[Warn("This mixin has been replaced by ClearAndDeleteItems")]
public static mixin DeleteAndClearItems(var container)
{
for (var value in container)
@ -159,6 +161,13 @@ static
container.Clear();
}
public static mixin ClearAndDeleteItems(var container)
{
for (var value in container)
delete value;
container.Clear();
}
public static void ClearAndDeleteItems<T>(List<T> container) where T : var
{
for (var value in container)