From 3838f0155ffa661b6076cb13993f7eeac0583fbc Mon Sep 17 00:00:00 2001 From: This-Is-Ko <52279273+This-Is-Ko@users.noreply.github.com> Date: Sun, 20 Oct 2024 11:38:42 +1100 Subject: [PATCH] Clean up --- .../services/ImageGeneratorService.java | 11 ++++++++--- .../ko/footballupdater/services/PlayerService.java | 4 ---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/ko/footballupdater/services/ImageGeneratorService.java b/src/main/java/com/ko/footballupdater/services/ImageGeneratorService.java index 4113440..d364ee2 100644 --- a/src/main/java/com/ko/footballupdater/services/ImageGeneratorService.java +++ b/src/main/java/com/ko/footballupdater/services/ImageGeneratorService.java @@ -5,14 +5,13 @@ import com.ko.footballupdater.configuration.TeamProperties; import com.ko.footballupdater.models.ImageStatEntry; import com.ko.footballupdater.models.PlayerMatchPerformanceStats; -import com.ko.footballupdater.models.PostType; import com.ko.footballupdater.models.Post; +import com.ko.footballupdater.models.PostType; import com.ko.footballupdater.models.Team; import com.ko.footballupdater.models.form.HorizontalTranslation; import com.ko.footballupdater.models.form.ImageGenParams; import com.ko.footballupdater.models.form.StatisticEntryGenerateDto; import com.ko.footballupdater.models.form.VerticalTranslation; -import com.ko.footballupdater.repositories.TeamRepository; import com.ko.footballupdater.utils.DateTimeHelper; import com.ko.footballupdater.utils.LogHelper; import com.ko.footballupdater.utils.PostHelper; @@ -22,7 +21,13 @@ import org.springframework.stereotype.Service; import javax.imageio.ImageIO; -import java.awt.*; +import java.awt.Color; +import java.awt.Font; +import java.awt.FontMetrics; +import java.awt.GradientPaint; +import java.awt.Graphics2D; +import java.awt.Image; +import java.awt.RenderingHints; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; diff --git a/src/main/java/com/ko/footballupdater/services/PlayerService.java b/src/main/java/com/ko/footballupdater/services/PlayerService.java index e277059..2416308 100644 --- a/src/main/java/com/ko/footballupdater/services/PlayerService.java +++ b/src/main/java/com/ko/footballupdater/services/PlayerService.java @@ -14,7 +14,6 @@ import com.ko.footballupdater.models.PostType; import com.ko.footballupdater.repositories.PlayerRepository; import com.ko.footballupdater.repositories.PostRepository; -import com.ko.footballupdater.repositories.TeamRepository; import com.ko.footballupdater.request.RequestDataSource; import com.ko.footballupdater.request.UpdatePlayerRequest; import com.ko.footballupdater.responses.UpdatePlayersResponse; @@ -39,9 +38,6 @@ public class PlayerService { @Autowired private PlayerRepository playerRepository; - @Autowired - private TeamRepository teamRepository; - @Autowired private PostRepository postRepository;