fix: Prepares for IPooledEnumerable removal (#1548)
### Summary - Removes `IPooledEnumerable` (non-generic) - Changes `IPooledEnumerable<T>` so that `Free()` is replaced with the `IDisposable` pattern
This commit is contained in:
parent
c2d6578955
commit
d57f1fecc1
92 changed files with 644 additions and 907 deletions
|
|
@ -81,8 +81,6 @@ namespace Server.SkillHandlers
|
|||
}
|
||||
}
|
||||
|
||||
inRange.Free();
|
||||
|
||||
if (Faction.Find(src) != null)
|
||||
{
|
||||
var itemsInRange = src.Map.GetItemsInRange<BaseFactionTrap>(p, range);
|
||||
|
|
@ -103,8 +101,6 @@ namespace Server.SkillHandlers
|
|||
foundAnyone = true;
|
||||
}
|
||||
}
|
||||
|
||||
itemsInRange.Free();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,8 +69,6 @@ namespace Server.SkillHandlers
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
}
|
||||
|
||||
ok = !badCombat && m.CheckSkill(SkillName.Hiding, 0.0 - bonus, 100.0 - bonus);
|
||||
|
|
|
|||
|
|
@ -77,8 +77,6 @@ public static class Snooping
|
|||
ns.Mobile.SendMessage(message);
|
||||
}
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -134,7 +134,6 @@ namespace Server.SkillHandlers
|
|||
break;
|
||||
}
|
||||
}
|
||||
eable.Free();
|
||||
|
||||
var min = 1 + (int)(Caster.Skills.SpiritSpeak.Value * 0.25);
|
||||
var max = min + 4;
|
||||
|
|
|
|||
|
|
@ -225,7 +225,6 @@ namespace Server.SkillHandlers
|
|||
list.Add(m);
|
||||
}
|
||||
}
|
||||
eable.Free();
|
||||
|
||||
if (list.Count > 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue