From 2dab2013bfa5fd006dc147c05ca95e88fec6ec55 Mon Sep 17 00:00:00 2001 From: weisj <31143295+weisJ@users.noreply.github.com> Date: Fri, 5 Mar 2021 23:27:07 +0100 Subject: [PATCH] Util: Remove unused methods. --- .../java/com/github/weisj/darklaf/util/SwingXUtil.java | 6 ------ .../java/com/github/weisj/darklaf/util/TimerUtil.java | 9 --------- 2 files changed, 15 deletions(-) diff --git a/core/src/main/java/com/github/weisj/darklaf/util/SwingXUtil.java b/core/src/main/java/com/github/weisj/darklaf/util/SwingXUtil.java index 98d22594..bfa3118e 100644 --- a/core/src/main/java/com/github/weisj/darklaf/util/SwingXUtil.java +++ b/core/src/main/java/com/github/weisj/darklaf/util/SwingXUtil.java @@ -31,12 +31,6 @@ import org.pbjar.jxlayer.plaf.ext.TransformUI; public final class SwingXUtil { - @SuppressWarnings("unchecked") - public static Point convertPointToParent(final Component source, final Point p) { - JXLayer layer = DarkUIUtil.getParentOfType(JXLayer.class, source); - return convertPointToParent(source, layer, p); - } - public static Point convertPointToParent(final Component source, final JXLayer layer, final Point p) { if (layer != null && layer.getUI() instanceof TransformUI) { diff --git a/core/src/main/java/com/github/weisj/darklaf/util/TimerUtil.java b/core/src/main/java/com/github/weisj/darklaf/util/TimerUtil.java index 1f0fe292..d478b2c0 100644 --- a/core/src/main/java/com/github/weisj/darklaf/util/TimerUtil.java +++ b/core/src/main/java/com/github/weisj/darklaf/util/TimerUtil.java @@ -36,13 +36,4 @@ public final class TimerUtil { } }; } - - public static Timer createNamedTimer(final String name, final int delay) { - return new Timer(delay, null) { - @Override - public String toString() { - return name; - } - }; - } }