From c4109e78bc62a4f344cfb9abba065f8504235e31 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 19 May 2021 12:15:37 +0200 Subject: [PATCH] Removed unused imports --- app/src/processing/app/Editor.java | 3 --- app/test/processing/app/AbstractGUITest.java | 8 +++----- .../HittingEscapeOnCloseConfirmationDialogTest.java | 12 ++++++------ 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/app/src/processing/app/Editor.java b/app/src/processing/app/Editor.java index 066df5ce7..c1be9b5ef 100644 --- a/app/src/processing/app/Editor.java +++ b/app/src/processing/app/Editor.java @@ -80,8 +80,6 @@ import javax.swing.TransferHandler; import javax.swing.event.MenuEvent; import javax.swing.event.MenuListener; import javax.swing.text.BadLocationException; -import javax.swing.text.Document; -import javax.swing.text.Element; import org.fife.ui.rsyntaxtextarea.folding.FoldManager; @@ -97,7 +95,6 @@ import cc.arduino.view.StubMenuListener; import cc.arduino.view.findreplace.FindReplace; import jssc.SerialPortException; import processing.app.debug.RunnerException; -import processing.app.debug.TargetBoard; import processing.app.forms.PasswordAuthorizationDialog; import processing.app.helpers.DocumentTextChangeListener; import processing.app.helpers.Keys; diff --git a/app/test/processing/app/AbstractGUITest.java b/app/test/processing/app/AbstractGUITest.java index 37f0ebefe..efc68c1df 100644 --- a/app/test/processing/app/AbstractGUITest.java +++ b/app/test/processing/app/AbstractGUITest.java @@ -29,17 +29,15 @@ package processing.app; -import cc.arduino.files.DeleteFilesOnShutdown; +import javax.swing.JPopupMenu; + import org.fest.swing.edt.FailOnThreadViolationRepaintManager; import org.fest.swing.edt.GuiActionRunner; import org.fest.swing.edt.GuiQuery; import org.junit.After; import org.junit.Before; -import processing.app.helpers.ArduinoFrameFixture; -import processing.app.helpers.FileUtils; -import javax.swing.*; -import java.util.Random; +import processing.app.helpers.ArduinoFrameFixture; public abstract class AbstractGUITest extends AbstractWithPreferencesTest { diff --git a/app/test/processing/app/HittingEscapeOnCloseConfirmationDialogTest.java b/app/test/processing/app/HittingEscapeOnCloseConfirmationDialogTest.java index 59dff4c35..00539b15b 100644 --- a/app/test/processing/app/HittingEscapeOnCloseConfirmationDialogTest.java +++ b/app/test/processing/app/HittingEscapeOnCloseConfirmationDialogTest.java @@ -29,19 +29,19 @@ package processing.app; +import static org.junit.Assert.assertEquals; +import static processing.app.I18n.tr; + +import java.awt.event.KeyEvent; + import org.fest.swing.core.KeyPressInfo; import org.fest.swing.core.matcher.DialogMatcher; import org.fest.swing.finder.WindowFinder; import org.fest.swing.fixture.DialogFixture; import org.junit.Test; + import processing.app.helpers.SketchTextAreaFixture; -import javax.swing.*; -import java.awt.event.KeyEvent; - -import static org.junit.Assert.assertEquals; -import static processing.app.I18n.tr; - public class HittingEscapeOnCloseConfirmationDialogTest extends AbstractGUITest { @Test