From ccb456ea0cdde942c97bb01cc00f29628871dbcf Mon Sep 17 00:00:00 2001 From: Video Date: Fri, 2 Jun 2023 16:57:26 -0600 Subject: [PATCH] Removes old unused UserData methods --- .../datura/user/SimpleUserData.java | 18 +----------------- .../java/me/totalfreedom/user/UserData.java | 4 ---- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/Datura/src/main/java/me/totalfreedom/datura/user/SimpleUserData.java b/Datura/src/main/java/me/totalfreedom/datura/user/SimpleUserData.java index be92bd7..ab8446e 100644 --- a/Datura/src/main/java/me/totalfreedom/datura/user/SimpleUserData.java +++ b/Datura/src/main/java/me/totalfreedom/datura/user/SimpleUserData.java @@ -51,7 +51,6 @@ public class SimpleUserData implements UserData final long playtime, final boolean frozen, final boolean canInteract, - final boolean caged, final long balance, final boolean transactionsFrozen) { @@ -62,7 +61,6 @@ public class SimpleUserData implements UserData this.playtime = playtime; this.frozen = frozen; this.canInteract = canInteract; - this.caged = caged; this.balance = new AtomicLong(balance); this.transactionsFrozen = transactionsFrozen; } @@ -101,8 +99,7 @@ public class SimpleUserData implements UserData final boolean transactionsFrozen = result.getBoolean( "transactionsFrozen"); return new SimpleUserData(u, username, user, group, playtime, frozen, - canInteract, caged, balance, - transactionsFrozen); + canInteract, balance, transactionsFrozen); } } catch (SQLException ex) @@ -214,19 +211,6 @@ public class SimpleUserData implements UserData this.canInteract = canInteract; } - @Override - public boolean isCaged() - { - return caged; - } - - @Override - public void setCaged(final boolean caged) - { - event.ping(); - this.caged = caged; - } - @Override public boolean areTransactionsFrozen() { diff --git a/Patchwork/src/main/java/me/totalfreedom/user/UserData.java b/Patchwork/src/main/java/me/totalfreedom/user/UserData.java index 1ceb5ed..e482750 100644 --- a/Patchwork/src/main/java/me/totalfreedom/user/UserData.java +++ b/Patchwork/src/main/java/me/totalfreedom/user/UserData.java @@ -34,8 +34,4 @@ public interface UserData extends EconomicEntityData boolean canInteract(); void setInteractionState(boolean canInteract); - - boolean isCaged(); - - void setCaged(boolean caged); }