Skip to content

Commit

Permalink
Client: Remove all unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
StenAL committed May 31, 2024
1 parent 2a2a58f commit 055acc9
Show file tree
Hide file tree
Showing 46 changed files with 109 additions and 94 deletions.
11 changes: 9 additions & 2 deletions client/src/main/java/agolf/GameApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,17 @@
import agolf.game.GamePanel;
import agolf.lobby.LobbyPanel;
import com.aapeli.applet.AApplet;
import com.aapeli.client.*;
import com.aapeli.client.AutoPopups;
import com.aapeli.client.BadWordFilter;
import com.aapeli.client.ImageManager;
import com.aapeli.client.Parameters;
import com.aapeli.client.SoundManager;
import com.aapeli.client.TextManager;
import org.moparforia.client.Launcher;

import java.awt.*;
import java.awt.Color;
import java.awt.Font;
import java.awt.Image;

public class GameApplet extends AApplet {

Expand Down
12 changes: 10 additions & 2 deletions client/src/main/java/agolf/TrackTestLoginPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

import com.aapeli.multiuser.UsernameValidator;

import java.awt.*;
import java.awt.event.*;
import java.awt.Button;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Label;
import java.awt.Panel;
import java.awt.TextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

class TrackTestLoginPanel extends Panel implements ActionListener, KeyListener {

Expand Down
5 changes: 4 additions & 1 deletion client/src/main/java/agolf/game/GameBackgroundCanvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import agolf.GameApplet;
import agolf.GameContainer;

import java.awt.*;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
import java.util.StringTokenizer;

public class GameBackgroundCanvas extends Canvas {
Expand Down
13 changes: 10 additions & 3 deletions client/src/main/java/agolf/game/GameCanvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@
import agolf.GameContainer;
import agolf.Seed;
import agolf.SynchronizedBool;

import com.aapeli.client.Parameters;
import com.aapeli.client.StringDraw;
import com.aapeli.tools.Tools;

import java.awt.*;
import java.awt.event.*;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.util.Arrays;
import java.util.StringTokenizer;
import java.util.Vector;
Expand Down
6 changes: 5 additions & 1 deletion client/src/main/java/agolf/lobby/LobbyMultiPlayerPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
import com.aapeli.client.FilterTextField;
import com.aapeli.client.InputTextField;
import com.aapeli.client.StringDraw;
import com.aapeli.colorgui.*;
import com.aapeli.colorgui.Choicer;
import com.aapeli.colorgui.ColorButton;
import com.aapeli.colorgui.MultiColorList;
import com.aapeli.colorgui.MultiColorListItem;
import com.aapeli.colorgui.MultiColorListListener;

import java.awt.Color;
import java.awt.Graphics;
Expand Down
3 changes: 2 additions & 1 deletion client/src/main/java/agolf/lobby/LobbyPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
import com.aapeli.multiuser.UserListItem;
import org.moparforia.client.Launcher;

import java.awt.*;
import java.awt.Graphics;
import java.awt.Panel;

public class LobbyPanel extends Panel {

Expand Down
6 changes: 5 additions & 1 deletion client/src/main/java/agolf/lobby/LobbySinglePlayerPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import agolf.GameApplet;
import agolf.GameContainer;
import com.aapeli.client.StringDraw;
import com.aapeli.colorgui.*;
import com.aapeli.colorgui.Choicer;
import com.aapeli.colorgui.ColorButton;
import com.aapeli.colorgui.MultiColorList;
import com.aapeli.colorgui.MultiColorListItem;
import com.aapeli.colorgui.MultiColorListListener;
import org.moparforia.client.Launcher;

import java.awt.Color;
Expand Down
8 changes: 7 additions & 1 deletion client/src/main/java/com/aapeli/applet/AdCanvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

import com.aapeli.client.Parameters;

import java.awt.*;
import java.awt.Canvas;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.net.URL;
Expand Down
1 change: 0 additions & 1 deletion client/src/main/java/com/aapeli/bigtext/BigText.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.aapeli.bigtext;

import com.aapeli.bigtext.MediumText;
import com.aapeli.client.ImageManager;

import java.applet.Applet;
Expand Down
2 changes: 0 additions & 2 deletions client/src/main/java/com/aapeli/bigtext/MediumText.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.aapeli.bigtext;

import com.aapeli.bigtext.BigText;

import java.awt.Color;

public class MediumText extends BigText {
Expand Down
1 change: 0 additions & 1 deletion client/src/main/java/com/aapeli/client/BadWordFilter.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.aapeli.client;

import com.aapeli.client.TextManager;
import com.aapeli.tools.Tools;

import java.util.StringTokenizer;
Expand Down
3 changes: 0 additions & 3 deletions client/src/main/java/com/aapeli/client/Class79.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.aapeli.client;

import com.aapeli.client.Class80;
import com.aapeli.client.HtmlText;

import java.awt.Font;
import java.awt.Graphics;
import java.util.Vector;
Expand Down
2 changes: 0 additions & 2 deletions client/src/main/java/com/aapeli/client/Class80.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.aapeli.client;

import com.aapeli.client.Class79;

import java.awt.Font;
import java.awt.Graphics;

Expand Down
2 changes: 0 additions & 2 deletions client/src/main/java/com/aapeli/client/Class81.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.aapeli.client;

import com.aapeli.client.HtmlText;

import java.awt.Font;
import java.awt.Graphics;

Expand Down
3 changes: 0 additions & 3 deletions client/src/main/java/com/aapeli/client/Frame_Sub3.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.aapeli.client;

import com.aapeli.client.Panel_Sub24;
import com.aapeli.client.TextManager;

import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
Expand Down
6 changes: 0 additions & 6 deletions client/src/main/java/com/aapeli/client/Frame_Sub3_Sub3.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
package com.aapeli.client;

import com.aapeli.client.Class88;
import com.aapeli.client.Frame_Sub3;
import com.aapeli.client.ImageManager;
import com.aapeli.client.Panel_Sub24;
import com.aapeli.client.TextManager;

import java.awt.Component;

class Frame_Sub3_Sub3 extends Frame_Sub3 {
Expand Down
3 changes: 0 additions & 3 deletions client/src/main/java/com/aapeli/client/HtmlText.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.aapeli.client;

import com.aapeli.client.Class79;
import com.aapeli.client.Class81;

import java.awt.Graphics;
import java.util.Vector;

Expand Down
4 changes: 3 additions & 1 deletion client/src/main/java/com/aapeli/client/ImageManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import com.aapeli.tools.Tools;

import java.applet.Applet;
import java.awt.*;
import java.awt.Component;
import java.awt.Image;
import java.awt.Toolkit;
import java.awt.image.MemoryImageSource;
import java.awt.image.PixelGrabber;
import java.net.MalformedURLException;
Expand Down
2 changes: 1 addition & 1 deletion client/src/main/java/com/aapeli/client/ImageResource.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.aapeli.client;

import java.awt.*;
import java.awt.Image;

class ImageResource {

Expand Down
2 changes: 1 addition & 1 deletion client/src/main/java/com/aapeli/client/ImageTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import com.aapeli.tools.Tools;

import java.applet.Applet;
import java.awt.*;
import java.awt.Image;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;
Expand Down
6 changes: 0 additions & 6 deletions client/src/main/java/com/aapeli/client/Panel_Sub24.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
package com.aapeli.client;

import com.aapeli.client.Class88;
import com.aapeli.client.Frame_Sub3_Sub3;
import com.aapeli.client.ImageManager;
import com.aapeli.client.InputTextField;
import com.aapeli.client.StringDraw;
import com.aapeli.client.TextManager;
import com.aapeli.colorgui.ColorButton;
import com.aapeli.tools.DelayRepaint;

Expand Down
5 changes: 4 additions & 1 deletion client/src/main/java/com/aapeli/colorgui/Choicer.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

import com.aapeli.client.IPanel;

import java.awt.*;
import java.awt.Choice;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.ItemSelectable;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.awt.event.ItemEvent;
Expand Down
1 change: 0 additions & 1 deletion client/src/main/java/com/aapeli/colorgui/Class90.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.aapeli.colorgui;

import com.aapeli.colorgui.ColorButton;
import com.aapeli.tools.Tools;

class Class90 implements Runnable {
Expand Down
2 changes: 0 additions & 2 deletions client/src/main/java/com/aapeli/colorgui/Class91.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.aapeli.colorgui;

import com.aapeli.client.StringDraw;
import com.aapeli.colorgui.ColorList;
import com.aapeli.colorgui.ColorListItem;

import java.awt.Color;
import java.awt.Font;
Expand Down
1 change: 0 additions & 1 deletion client/src/main/java/com/aapeli/colorgui/Class92.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.aapeli.colorgui;

import com.aapeli.colorgui.ColorSpinner;
import com.aapeli.tools.Tools;

class Class92 implements Runnable {
Expand Down
2 changes: 0 additions & 2 deletions client/src/main/java/com/aapeli/colorgui/Class93.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.aapeli.colorgui;

import com.aapeli.colorgui.ColorTextArea;

import java.awt.Color;

class Class93 {
Expand Down
1 change: 0 additions & 1 deletion client/src/main/java/com/aapeli/colorgui/Class95.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.aapeli.colorgui;

import com.aapeli.colorgui.RoundButton;
import com.aapeli.tools.Tools;

class Class95 implements Runnable {
Expand Down
2 changes: 0 additions & 2 deletions client/src/main/java/com/aapeli/colorgui/ColorButton.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.aapeli.colorgui;

import com.aapeli.client.IPanel;
import com.aapeli.colorgui.Class90;
import com.aapeli.colorgui.Class94;

import java.awt.Color;
import java.awt.Dimension;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.aapeli.colorgui;

import com.aapeli.colorgui.ColorCheckbox;

import java.util.Enumeration;
import java.util.Vector;

Expand Down
5 changes: 0 additions & 5 deletions client/src/main/java/com/aapeli/colorgui/ColorList.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
package com.aapeli.colorgui;

import com.aapeli.colorgui.Class91;
import com.aapeli.colorgui.Class94;
import com.aapeli.colorgui.ColorListItem;
import com.aapeli.colorgui.ColorListItemGroup;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
Expand Down
3 changes: 0 additions & 3 deletions client/src/main/java/com/aapeli/colorgui/ColorListItem.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.aapeli.colorgui;

import com.aapeli.colorgui.ColorList;
import com.aapeli.colorgui.ColorListItemGroup;

import java.awt.Color;
import java.awt.Image;

Expand Down
1 change: 0 additions & 1 deletion client/src/main/java/com/aapeli/colorgui/ColorSpinner.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.aapeli.client.IPanel;
import com.aapeli.client.StringDraw;
import com.aapeli.colorgui.Class92;

import java.awt.Color;
import java.awt.Dimension;
Expand Down
2 changes: 0 additions & 2 deletions client/src/main/java/com/aapeli/colorgui/ColorTextArea.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package com.aapeli.colorgui;

import com.aapeli.client.IPanel;
import com.aapeli.colorgui.Class93;
import com.aapeli.colorgui.Class94;

import java.awt.Color;
import java.awt.Dimension;
Expand Down
3 changes: 0 additions & 3 deletions client/src/main/java/com/aapeli/colorgui/RadioButton.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.aapeli.colorgui;

import com.aapeli.colorgui.ColorButton;
import com.aapeli.colorgui.RadioButtonGroup;

import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.MouseEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.aapeli.colorgui;

import com.aapeli.colorgui.RadioButtonGroup;
import com.aapeli.colorgui.RoundButton;

import java.awt.event.MouseEvent;

public class RoundRadioButton extends RoundButton {
Expand Down
5 changes: 0 additions & 5 deletions client/src/main/java/com/aapeli/colorgui/TabBar.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
package com.aapeli.colorgui;

import com.aapeli.client.IPanel;
import com.aapeli.colorgui.Class94;
import com.aapeli.colorgui.RadioButton;
import com.aapeli.colorgui.RadioButtonGroup;
import com.aapeli.colorgui.TabBarItem;
import com.aapeli.colorgui.TabBarListener;

import java.awt.Color;
import java.awt.Component;
Expand Down
3 changes: 0 additions & 3 deletions client/src/main/java/com/aapeli/colorgui/TabBarItem.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
package com.aapeli.colorgui;

import com.aapeli.colorgui.RadioButton;
import com.aapeli.colorgui.TabBar;

import java.awt.Component;
import java.awt.Image;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.aapeli.multiuser;

import com.aapeli.multiuser.ChatListener;

public interface GlobalChatListener extends ChatListener {

void localUserSay(int var1, String var2);
Expand Down
Loading

0 comments on commit 055acc9

Please sign in to comment.