From 85a8ae69736f93a1a972b696fd9d2fba5d435884 Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Thu, 19 May 2022 20:01:15 +0200 Subject: remove unused thing --- src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java | 5 ----- src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java | 2 +- .../cc/polyfrost/oneconfig/gui/elements/config/ConfigDropdown.java | 4 +--- 3 files changed, 2 insertions(+), 9 deletions(-) (limited to 'src/main/java/cc') diff --git a/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java b/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java index efcadc8..f30f01e 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/annotations/Option.java @@ -43,11 +43,6 @@ public @interface Option { */ String[] options() default {}; - /** - * The places you want dividers to be in a dropdown - */ - int[] dividers() default {}; - /** * The placeholder in the text field */ diff --git a/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java b/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java index a11b1d2..694404a 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/interfaces/Config.java @@ -135,7 +135,7 @@ public class Config { options.add(new ConfigUniSelector(field, instance, option.name(), option.size(), option.options())); break; case DROPDOWN: - options.add(new ConfigDropdown(field, instance, option.name(), option.size(), option.options(), option.dividers())); + options.add(new ConfigDropdown(field, instance, option.name(), option.size(), option.options())); break; case SLIDER: options.add(new ConfigSlider(field, instance, option.name(), option.size(), option.min(), option.max(), option.step())); diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigDropdown.java b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigDropdown.java index cd0875e..c01228d 100644 --- a/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigDropdown.java +++ b/src/main/java/cc/polyfrost/oneconfig/gui/elements/config/ConfigDropdown.java @@ -19,12 +19,10 @@ public class ConfigDropdown extends BasicOption { // TODO: remove dividers and f private final String[] options; private int backgroundColor = OneConfigConfig.GRAY_500; private boolean opened = false; - private int[] dividers; - public ConfigDropdown(Field field, Object parent, String name, int size, String[] options, int [] dividers) { + public ConfigDropdown(Field field, Object parent, String name, int size, String[] options) { super(field, parent, name, size); this.options = options; - this.dividers = dividers; } @Override -- cgit