From b443d4d71952811624c3404158488ebfedbe99e7 Mon Sep 17 00:00:00 2001 From: aj Date: Thu, 7 Jun 2018 23:43:57 +0100 Subject: [PATCH] removed unused imports, deleted copied resources --- .../sarsoo/fmframework/file/Persister.java | 2 - .../java/sarsoo/fmframework/fx/ArtistTab.java | 2 - .../sarsoo/fmframework/fx/ConsoleTab.java | 1 - .../fmframework/fx/FMObjListEditTab.java | 10 -- .../sarsoo/fmframework/fx/FMObjListTab.java | 10 -- .../java/sarsoo/fmframework/fx/TrackTab.java | 2 - .../fx/controller/AlbumGetPaneController.java | 1 - .../fx/controller/AlbumPaneController.java | 13 -- .../fx/controller/ArtistPaneController.java | 14 -- .../fx/controller/ControllerMain.java | 8 -- .../controller/FMObjListPaneController.java | 1 - .../FMObjListPaneEditController.java | 2 - .../fmframework/fx/styles/FMObjListPane.css | 46 ------ .../sarsoo/fmframework/fx/styles/ObjPane.css | 29 ---- .../sarsoo/fmframework/fx/styles/mainPane.css | 18 --- .../sarsoo/fmframework/fx/ui/AlbumPane.fxml | 109 --------------- .../sarsoo/fmframework/fx/ui/ArtistPane.fxml | 99 ------------- .../fmframework/fx/ui/FMObjListPane.fxml | 58 -------- .../fmframework/fx/ui/FMObjListPaneEdit.fxml | 79 ----------- .../sarsoo/fmframework/fx/ui/TrackPane.fxml | 91 ------------ .../fmframework/fx/ui/albumgetpane.fxml | 24 ---- .../java/sarsoo/fmframework/fx/ui/main.fxml | 132 ------------------ .../sarsoo/fmframework/fx/ui/template.fxml | 92 ------------ .../sarsoo/fmframework/jframe/Driver.java | 3 - .../fmframework/jframe/FMObjListView.java | 1 - .../fmframework/jframe/RefListsView.java | 4 - .../sarsoo/fmframework/jframe/WikiView.java | 14 -- .../java/sarsoo/fmframework/music/Artist.java | 1 - .../sarsoo/fmframework/net/Authenticator.java | 2 - .../java/sarsoo/fmframework/net/Network.java | 7 - .../sarsoo/fmframework/parser/Parser.java | 1 - .../java/sarsoo/fmframework/util/Getter.java | 2 +- .../java/sarsoo/fmframework/util/Maths.java | 2 - 33 files changed, 1 insertion(+), 879 deletions(-) delete mode 100644 src/main/java/sarsoo/fmframework/fx/styles/FMObjListPane.css delete mode 100644 src/main/java/sarsoo/fmframework/fx/styles/ObjPane.css delete mode 100644 src/main/java/sarsoo/fmframework/fx/styles/mainPane.css delete mode 100644 src/main/java/sarsoo/fmframework/fx/ui/AlbumPane.fxml delete mode 100644 src/main/java/sarsoo/fmframework/fx/ui/ArtistPane.fxml delete mode 100644 src/main/java/sarsoo/fmframework/fx/ui/FMObjListPane.fxml delete mode 100644 src/main/java/sarsoo/fmframework/fx/ui/FMObjListPaneEdit.fxml delete mode 100644 src/main/java/sarsoo/fmframework/fx/ui/TrackPane.fxml delete mode 100644 src/main/java/sarsoo/fmframework/fx/ui/albumgetpane.fxml delete mode 100644 src/main/java/sarsoo/fmframework/fx/ui/main.fxml delete mode 100644 src/main/java/sarsoo/fmframework/fx/ui/template.fxml diff --git a/src/main/java/sarsoo/fmframework/file/Persister.java b/src/main/java/sarsoo/fmframework/file/Persister.java index 1c77206..71cbb20 100644 --- a/src/main/java/sarsoo/fmframework/file/Persister.java +++ b/src/main/java/sarsoo/fmframework/file/Persister.java @@ -8,8 +8,6 @@ import java.io.FileOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; -import sarsoo.fmframework.util.FMObjList; - public class Persister { public void saveToFile(File file, T obj) { diff --git a/src/main/java/sarsoo/fmframework/fx/ArtistTab.java b/src/main/java/sarsoo/fmframework/fx/ArtistTab.java index 107a802..81d4ee2 100644 --- a/src/main/java/sarsoo/fmframework/fx/ArtistTab.java +++ b/src/main/java/sarsoo/fmframework/fx/ArtistTab.java @@ -4,9 +4,7 @@ import java.io.IOException; import javafx.scene.control.*; import javafx.scene.layout.*; -import sarsoo.fmframework.fx.controller.AlbumPaneController; import sarsoo.fmframework.fx.controller.ArtistPaneController; -import sarsoo.fmframework.music.Album; import sarsoo.fmframework.music.Artist; import javafx.fxml.FXMLLoader; diff --git a/src/main/java/sarsoo/fmframework/fx/ConsoleTab.java b/src/main/java/sarsoo/fmframework/fx/ConsoleTab.java index 2110353..f2c9b11 100644 --- a/src/main/java/sarsoo/fmframework/fx/ConsoleTab.java +++ b/src/main/java/sarsoo/fmframework/fx/ConsoleTab.java @@ -1,7 +1,6 @@ package sarsoo.fmframework.fx; import javafx.scene.control.Tab; -import javafx.scene.layout.AnchorPane; public class ConsoleTab extends Tab{ diff --git a/src/main/java/sarsoo/fmframework/fx/FMObjListEditTab.java b/src/main/java/sarsoo/fmframework/fx/FMObjListEditTab.java index 975f395..56dbeb8 100644 --- a/src/main/java/sarsoo/fmframework/fx/FMObjListEditTab.java +++ b/src/main/java/sarsoo/fmframework/fx/FMObjListEditTab.java @@ -1,20 +1,10 @@ package sarsoo.fmframework.fx; import java.io.IOException; -import java.text.NumberFormat; -import java.util.Collections; -import java.util.Locale; - import javafx.scene.control.*; import javafx.scene.layout.*; -import sarsoo.fmframework.fx.controller.FMObjListPaneController; import sarsoo.fmframework.fx.controller.FMObjListPaneEditController; -import sarsoo.fmframework.music.FMObj; import sarsoo.fmframework.util.FMObjList; -import sarsoo.fmframework.util.Maths; -import sarsoo.fmframework.util.Reference; - -import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; public class FMObjListEditTab extends Tab { diff --git a/src/main/java/sarsoo/fmframework/fx/FMObjListTab.java b/src/main/java/sarsoo/fmframework/fx/FMObjListTab.java index c53fa8c..cb98948 100644 --- a/src/main/java/sarsoo/fmframework/fx/FMObjListTab.java +++ b/src/main/java/sarsoo/fmframework/fx/FMObjListTab.java @@ -1,20 +1,10 @@ package sarsoo.fmframework.fx; import java.io.IOException; -import java.text.NumberFormat; -import java.util.Collections; -import java.util.Locale; - import javafx.scene.control.*; import javafx.scene.layout.*; import sarsoo.fmframework.fx.controller.FMObjListPaneController; -import sarsoo.fmframework.fx.controller.FMObjListPaneEditController; -import sarsoo.fmframework.music.FMObj; import sarsoo.fmframework.util.FMObjList; -import sarsoo.fmframework.util.Maths; -import sarsoo.fmframework.util.Reference; - -import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; public class FMObjListTab extends Tab { diff --git a/src/main/java/sarsoo/fmframework/fx/TrackTab.java b/src/main/java/sarsoo/fmframework/fx/TrackTab.java index 60e7391..ac24ba1 100644 --- a/src/main/java/sarsoo/fmframework/fx/TrackTab.java +++ b/src/main/java/sarsoo/fmframework/fx/TrackTab.java @@ -4,9 +4,7 @@ import java.io.IOException; import javafx.scene.control.*; import javafx.scene.layout.*; -import sarsoo.fmframework.fx.controller.AlbumPaneController; import sarsoo.fmframework.fx.controller.TrackPaneController; -import sarsoo.fmframework.music.Album; import sarsoo.fmframework.music.Track; import javafx.fxml.FXMLLoader; diff --git a/src/main/java/sarsoo/fmframework/fx/controller/AlbumGetPaneController.java b/src/main/java/sarsoo/fmframework/fx/controller/AlbumGetPaneController.java index dd23cf3..adc5080 100644 --- a/src/main/java/sarsoo/fmframework/fx/controller/AlbumGetPaneController.java +++ b/src/main/java/sarsoo/fmframework/fx/controller/AlbumGetPaneController.java @@ -2,7 +2,6 @@ package sarsoo.fmframework.fx.controller; import javafx.fxml.FXML; import javafx.scene.control.*; -import javafx.event.ActionEvent; public class AlbumGetPaneController { diff --git a/src/main/java/sarsoo/fmframework/fx/controller/AlbumPaneController.java b/src/main/java/sarsoo/fmframework/fx/controller/AlbumPaneController.java index 9597388..f1f44c2 100644 --- a/src/main/java/sarsoo/fmframework/fx/controller/AlbumPaneController.java +++ b/src/main/java/sarsoo/fmframework/fx/controller/AlbumPaneController.java @@ -2,31 +2,18 @@ package sarsoo.fmframework.fx.controller; import java.io.IOException; import java.text.NumberFormat; -import java.util.ArrayList; import java.util.Locale; -import javax.swing.JOptionPane; - import javafx.event.ActionEvent; import javafx.fxml.FXML; -import javafx.fxml.FXMLLoader; -import javafx.scene.text.Text; import sarsoo.fmframework.fx.ArtistTab; import sarsoo.fmframework.fx.FmFramework; import sarsoo.fmframework.music.Album; import sarsoo.fmframework.music.Wiki; import sarsoo.fmframework.net.Network; -import sarsoo.fmframework.util.FMObjList; -import sarsoo.fmframework.util.Getter; import sarsoo.fmframework.util.Maths; import sarsoo.fmframework.util.Reference; import javafx.scene.control.*; -import javafx.scene.input.KeyCode; -import javafx.scene.input.KeyEvent; -import javafx.scene.layout.GridPane; -import javafx.scene.chart.*; -import javafx.collections.ObservableList; -import javafx.collections.FXCollections; public class AlbumPaneController { diff --git a/src/main/java/sarsoo/fmframework/fx/controller/ArtistPaneController.java b/src/main/java/sarsoo/fmframework/fx/controller/ArtistPaneController.java index 107ab5a..ef11327 100644 --- a/src/main/java/sarsoo/fmframework/fx/controller/ArtistPaneController.java +++ b/src/main/java/sarsoo/fmframework/fx/controller/ArtistPaneController.java @@ -2,33 +2,19 @@ package sarsoo.fmframework.fx.controller; import java.io.IOException; import java.text.NumberFormat; -import java.util.ArrayList; import java.util.Locale; -import javax.swing.JOptionPane; - import javafx.event.ActionEvent; import javafx.fxml.FXML; -import javafx.fxml.FXMLLoader; -import javafx.scene.text.Text; -import sarsoo.fmframework.fx.ArtistTab; import sarsoo.fmframework.fx.FMObjListTab; import sarsoo.fmframework.fx.FmFramework; -import sarsoo.fmframework.music.Album; import sarsoo.fmframework.music.Artist; import sarsoo.fmframework.music.Wiki; import sarsoo.fmframework.net.Network; -import sarsoo.fmframework.util.FMObjList; import sarsoo.fmframework.util.Getter; import sarsoo.fmframework.util.Maths; import sarsoo.fmframework.util.Reference; import javafx.scene.control.*; -import javafx.scene.input.KeyCode; -import javafx.scene.input.KeyEvent; -import javafx.scene.layout.GridPane; -import javafx.scene.chart.*; -import javafx.collections.ObservableList; -import javafx.collections.FXCollections; public class ArtistPaneController { diff --git a/src/main/java/sarsoo/fmframework/fx/controller/ControllerMain.java b/src/main/java/sarsoo/fmframework/fx/controller/ControllerMain.java index aa073bb..b6771e2 100644 --- a/src/main/java/sarsoo/fmframework/fx/controller/ControllerMain.java +++ b/src/main/java/sarsoo/fmframework/fx/controller/ControllerMain.java @@ -12,11 +12,8 @@ import java.util.concurrent.CountDownLatch; import javax.swing.JOptionPane; import javafx.event.ActionEvent; -import javafx.event.Event; import javafx.event.EventHandler; import javafx.fxml.FXML; -import javafx.fxml.FXMLLoader; -import javafx.scene.text.Text; import javafx.stage.FileChooser; import sarsoo.fmframework.file.ListPersister; import sarsoo.fmframework.fx.AlbumTab; @@ -35,21 +32,16 @@ import sarsoo.fmframework.util.FMObjList; import sarsoo.fmframework.util.Getter; import sarsoo.fmframework.util.Reference; import javafx.scene.control.*; -import javafx.scene.input.MouseEvent; -import javafx.scene.layout.GridPane; import javafx.scene.chart.*; import javafx.scene.chart.PieChart.Data; import javafx.collections.ObservableList; import javafx.collections.FXCollections; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyEvent; -import javafx.scene.Parent; - import javafx.scene.layout.*; import javafx.concurrent.*; import javafx.application.Platform; -import javafx.scene.paint.Color; public class ControllerMain { diff --git a/src/main/java/sarsoo/fmframework/fx/controller/FMObjListPaneController.java b/src/main/java/sarsoo/fmframework/fx/controller/FMObjListPaneController.java index 1856fa3..d3f1b7d 100644 --- a/src/main/java/sarsoo/fmframework/fx/controller/FMObjListPaneController.java +++ b/src/main/java/sarsoo/fmframework/fx/controller/FMObjListPaneController.java @@ -14,7 +14,6 @@ import javafx.event.EventHandler; import javafx.fxml.FXML; import javafx.scene.control.*; import javafx.scene.input.MouseEvent; -import sarsoo.fmframework.fx.AlbumTab; import sarsoo.fmframework.fx.ArtistTab; import sarsoo.fmframework.fx.FmFramework; import sarsoo.fmframework.music.Artist; diff --git a/src/main/java/sarsoo/fmframework/fx/controller/FMObjListPaneEditController.java b/src/main/java/sarsoo/fmframework/fx/controller/FMObjListPaneEditController.java index faf1c52..0563a03 100644 --- a/src/main/java/sarsoo/fmframework/fx/controller/FMObjListPaneEditController.java +++ b/src/main/java/sarsoo/fmframework/fx/controller/FMObjListPaneEditController.java @@ -4,7 +4,6 @@ import java.io.File; import java.io.IOException; import java.text.NumberFormat; import java.util.Collections; -import java.util.Comparator; import java.util.Locale; import javafx.collections.FXCollections; @@ -30,7 +29,6 @@ import sarsoo.fmframework.util.Maths; import sarsoo.fmframework.util.Reference; import javafx.scene.layout.*; import javafx.scene.chart.*; -import javafx.scene.chart.PieChart.Data; import javafx.stage.FileChooser; public class FMObjListPaneEditController { diff --git a/src/main/java/sarsoo/fmframework/fx/styles/FMObjListPane.css b/src/main/java/sarsoo/fmframework/fx/styles/FMObjListPane.css deleted file mode 100644 index 900bf39..0000000 --- a/src/main/java/sarsoo/fmframework/fx/styles/FMObjListPane.css +++ /dev/null @@ -1,46 +0,0 @@ -.nameLabel{ - -fx-alignment: center; - -fx-font-size: 150%; - -fx-font-style: italic; - -fx-text-alignment: center; - - -} - -.number{ - -fx-text-alignment: right; - - -fx-font-style: italic; - -} - -.totalScrobbles{ - - -fx-font-style: italic; - -} - -.stats{ - - - -fx-font-size: 300%; - - -fx-font-style: italic; - -} - -.pane{ - - - -} - -.pieChart{ - - -fx-start-angle: 90; - - -} - -.default-color0.chart-pie { -fx-pie-color: #820000; } -.default-color1.chart-pie { -fx-pie-color: #49505b; } \ No newline at end of file diff --git a/src/main/java/sarsoo/fmframework/fx/styles/ObjPane.css b/src/main/java/sarsoo/fmframework/fx/styles/ObjPane.css deleted file mode 100644 index 6d146c7..0000000 --- a/src/main/java/sarsoo/fmframework/fx/styles/ObjPane.css +++ /dev/null @@ -1,29 +0,0 @@ -.titleLabel{ - - -fx-font-size: 600%; - -fx-font-weight: bolder; - -} - -.subLabel{ - - -fx-font-size: 300%; - -fx-font-weight: bold; -} - -.normalLabel{ - - -fx-font-size: 200%; - -} - -.wikiTextArea{ - - -} - -.stats{ - - - -} \ No newline at end of file diff --git a/src/main/java/sarsoo/fmframework/fx/styles/mainPane.css b/src/main/java/sarsoo/fmframework/fx/styles/mainPane.css deleted file mode 100644 index 8c82183..0000000 --- a/src/main/java/sarsoo/fmframework/fx/styles/mainPane.css +++ /dev/null @@ -1,18 +0,0 @@ -.vBoxStats{ - -fx-background-color: #001a44; -} - -.gridPane{ - - -fx-background-color: #a2aec1; -} - -.vBoxStatsLabel{ - - -fx-text-fill: white; -} - -.pieChart{ - - -fx-start-angle: 90; -} \ No newline at end of file diff --git a/src/main/java/sarsoo/fmframework/fx/ui/AlbumPane.fxml b/src/main/java/sarsoo/fmframework/fx/ui/AlbumPane.fxml deleted file mode 100644 index 0abbcc7..0000000 --- a/src/main/java/sarsoo/fmframework/fx/ui/AlbumPane.fxml +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -