World checks in BrushSettings don't offer any performance benefit

This commit is contained in:
MattBDev
2020-02-05 10:40:29 -05:00
parent 75653087b9
commit aa04b0c326
2 changed files with 1 additions and 16 deletions

View File

@ -51,7 +51,6 @@ public class BrushSettings {
private Expression size = DEFAULT_SIZE;
private Set<String> permissions;
private Scroll scrollAction;
private String lastWorld;
public BrushSettings() {
this.permissions = new HashSet<>();
@ -213,20 +212,6 @@ public class BrushSettings {
return this;
}
/**
* Set the world the brush is being used in
* @param world
* @return true if the world differs from the last used world
*/
public boolean setWorld(String world) {
boolean result = false;
if (this.lastWorld != null && !this.lastWorld.equalsIgnoreCase(world)) {
result = true;
}
this.lastWorld = world;
return result;
}
public Brush getBrush() {
return brush;
}