Skip to content

Commit 225f3d7

Browse files
committed
refactor: remove UnpunishType from PunishmentReason
1 parent 7bfa8c8 commit 225f3d7

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

commons/src/main/java/net/swofty/commons/punishment/PunishmentReason.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ public class PunishmentReason {
1515
private BanType banType;
1616
@Nullable
1717
private MuteType muteType;
18-
@Nullable
19-
private UnpunishReason unpunishReason;
2018

2119
public PunishmentReason(@NonNull BanType banType) {
2220
this.banType = banType;
@@ -26,10 +24,6 @@ public PunishmentReason(@NonNull MuteType muteType) {
2624
this.muteType = muteType;
2725
}
2826

29-
public PunishmentReason(@NonNull UnpunishReason unpunishReason) {
30-
this.unpunishReason = unpunishReason;
31-
}
32-
3327
public PunishmentReason(@NonNull String custom) {
3428
this.custom = custom;
3529
}
@@ -39,8 +33,6 @@ public String getReasonString() {
3933
return banType.getReason();
4034
} else if (muteType != null) {
4135
return muteType.getReason();
42-
} else if (unpunishReason != null) {
43-
return unpunishReason.getReason();
4436
} else {
4537
return custom;
4638
}

0 commit comments

Comments
 (0)