Removed superfluous recalculation call; Fixes BUKKIT-3728

The permission attachment interface provides two methods each for setting
and unsetting permissions. Each one also provides an extra call to the
recalculatePermissions() method on the permissible, which degrades
performance.

This commit removes the duplicate call to recalculate permissions.

By: Jeffrey Wardian <krinsdeath@hotmail.com>
This commit is contained in:
Bukkit/Spigot 2013-03-11 12:31:44 -07:00
parent 63dc4b52b3
commit 69740791f7

View file

@ -90,7 +90,6 @@ public class PermissionAttachment {
*/
public void setPermission(Permission perm, boolean value) {
setPermission(perm.getName(), value);
permissible.recalculatePermissions();
}
/**
@ -114,7 +113,6 @@ public class PermissionAttachment {
*/
public void unsetPermission(Permission perm) {
unsetPermission(perm.getName());
permissible.recalculatePermissions();
}
/**