From 3d1f614687133af5c325f9ae09146b878b1c0ad9 Mon Sep 17 00:00:00 2001 From: Jannis Weis <31143295+weisJ@users.noreply.github.com> Date: Mon, 25 Apr 2022 17:49:45 +0200 Subject: [PATCH] Remove unused ExpandedIcon and CollapsedIcon --- .../resources/IconResources.java | 50 ------------------- 1 file changed, 50 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java index 7e2a89a6..c3f76a63 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java @@ -143,54 +143,4 @@ public class IconResources return image; } - - - /** - * The minus sign button icon - */ - public static class ExpandedIcon implements Icon, Serializable - { - static public Icon createExpandedIcon() { - return new ExpandedIcon(); - } - - public void paintIcon(Component c, Graphics g, int x, int y) - { - Color backgroundColor = c.getBackground(); - if(backgroundColor != null) - g.setColor(backgroundColor); - else - g.setColor(Color.white); - - g.fillRect(x, y, SIZE-1, SIZE-1); - g.setColor(Color.gray); - g.drawRect(x, y, SIZE-1, SIZE-1); - g.setColor(Color.black); - g.drawLine(x + 2, y + HALF_SIZE, x + (SIZE - 3), y + HALF_SIZE); - } - - public int getIconWidth() { - return SIZE; - } - - public int getIconHeight() { - return SIZE; - } - } - - /** - * The plus sign button icon - */ - public static class CollapsedIcon extends ExpandedIcon - { - static public Icon createCollapsedIcon() { - return new CollapsedIcon(); - } - - public void paintIcon(Component c, Graphics g, int x, int y) - { - super.paintIcon(c, g, x, y); - g.drawLine(x + HALF_SIZE, y + 2, x + HALF_SIZE, y + (SIZE - 3)); - } - } }