aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/io/github/cottonmc/cotton/gui/widget/WTabPanel.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WTabPanel.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WTabPanel.java
index 718e44b..9c16c73 100644
--- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WTabPanel.java
+++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WTabPanel.java
@@ -116,19 +116,7 @@ public class WTabPanel extends WPanel {
@Nullable
private final Consumer<TooltipBuilder> tooltip;
- /**
- * Constructs a tab.
- *
- * @param title the tab title
- * @param icon the tab icon
- * @param widget the widget contained in the tab
- * @param tooltip the tab tooltip
- * @throws IllegalArgumentException if both the title and the icon are null
- * @throws NullPointerException if the widget is null
- * @deprecated Use {@link Builder} instead.
- */
- @Deprecated
- public Tab(@Nullable Text title, @Nullable Icon icon, WWidget widget, @Nullable Consumer<TooltipBuilder> tooltip) {
+ private Tab(@Nullable Text title, @Nullable Icon icon, WWidget widget, @Nullable Consumer<TooltipBuilder> tooltip) {
if (title == null && icon == null) {
throw new IllegalArgumentException("A tab must have a title or an icon");
}