Browse Source

Util: Remove unused methods.

pull/235/head
weisj 4 years ago
parent
commit
2dab2013bf
No known key found for this signature in database
GPG Key ID: 31124CB75461DA2A
  1. 6
      core/src/main/java/com/github/weisj/darklaf/util/SwingXUtil.java
  2. 9
      core/src/main/java/com/github/weisj/darklaf/util/TimerUtil.java

6
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 { public final class SwingXUtil {
@SuppressWarnings("unchecked")
public static Point convertPointToParent(final Component source, final Point p) {
JXLayer<? extends JComponent> layer = DarkUIUtil.getParentOfType(JXLayer.class, source);
return convertPointToParent(source, layer, p);
}
public static <T extends JComponent> Point convertPointToParent(final Component source, final JXLayer<T> layer, public static <T extends JComponent> Point convertPointToParent(final Component source, final JXLayer<T> layer,
final Point p) { final Point p) {
if (layer != null && layer.getUI() instanceof TransformUI) { if (layer != null && layer.getUI() instanceof TransformUI) {

9
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;
}
};
}
} }

Loading…
Cancel
Save