From bc7d3a23ad1f843153006518d9a4adf17ed40174 Mon Sep 17 00:00:00 2001 From: Cyril Dubuisson Date: Tue, 13 Aug 2019 18:04:42 +0200 Subject: [PATCH] :rotating_light: : remove unused imports --- .../java/io/codeka/gaia/runner/StackCommandBuilder.java | 2 +- src/main/java/io/codeka/gaia/runner/StackRunner.java | 4 ++-- .../io/codeka/gaia/stacks/service/StackCostCalculator.java | 2 +- src/main/resources/templates/layout/sidebar.html | 3 +-- src/main/resources/templates/layout/topbar.html | 3 +-- src/main/resources/templates/users.html | 2 +- .../java/io/codeka/gaia/runner/DockerContainerTest.java | 5 +---- .../io/codeka/gaia/runner/StackCommandBuilderTest.java | 4 ++-- src/test/java/io/codeka/gaia/runner/StackRunnerTest.java | 2 +- src/test/java/io/codeka/gaia/settings/bo/SettingsTest.java | 4 ++-- .../gaia/settings/repository/SettingsRepositoryIT.java | 2 +- src/test/java/io/codeka/gaia/stacks/bo/JobTest.java | 3 --- .../gaia/stacks/controller/JobRestControllerTest.java | 4 +--- .../codeka/gaia/stacks/controller/StackControllerTest.java | 7 +++---- .../gaia/stacks/controller/StackRestControllerTest.java | 2 -- .../io/codeka/gaia/stacks/repository/JobRepositoryIT.java | 1 - .../codeka/gaia/stacks/repository/StackRepositoryIT.java | 1 - .../gaia/stacks/service/StackCostCalculatorTest.java | 4 ++-- .../gaia/teams/controller/TeamsRestControllerTest.java | 6 ------ .../gaia/teams/controller/UserControllerAdviceTest.java | 3 --- .../gaia/teams/controller/UsersRestControllerTest.java | 1 - .../codeka/gaia/teams/repository/UserRepositoryTest.java | 4 ---- 22 files changed, 20 insertions(+), 49 deletions(-) diff --git a/src/main/java/io/codeka/gaia/runner/StackCommandBuilder.java b/src/main/java/io/codeka/gaia/runner/StackCommandBuilder.java index 355445810..0c30c6bb2 100644 --- a/src/main/java/io/codeka/gaia/runner/StackCommandBuilder.java +++ b/src/main/java/io/codeka/gaia/runner/StackCommandBuilder.java @@ -1,9 +1,9 @@ package io.codeka.gaia.runner; import com.github.mustachejava.Mustache; +import io.codeka.gaia.modules.bo.TerraformModule; import io.codeka.gaia.settings.bo.Settings; import io.codeka.gaia.stacks.bo.Stack; -import io.codeka.gaia.modules.bo.TerraformModule; import io.codeka.gaia.stacks.bo.mustache.TerraformScript; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; diff --git a/src/main/java/io/codeka/gaia/runner/StackRunner.java b/src/main/java/io/codeka/gaia/runner/StackRunner.java index c8b3aa90d..b3d9f62a0 100644 --- a/src/main/java/io/codeka/gaia/runner/StackRunner.java +++ b/src/main/java/io/codeka/gaia/runner/StackRunner.java @@ -5,12 +5,12 @@ import com.spotify.docker.client.messages.ContainerConfig; import io.codeka.gaia.modules.bo.TerraformModule; import io.codeka.gaia.settings.bo.Settings; -import io.codeka.gaia.stacks.repository.JobRepository; -import io.codeka.gaia.stacks.repository.StackRepository; import io.codeka.gaia.stacks.bo.Job; import io.codeka.gaia.stacks.bo.JobType; import io.codeka.gaia.stacks.bo.Stack; import io.codeka.gaia.stacks.bo.StackState; +import io.codeka.gaia.stacks.repository.JobRepository; +import io.codeka.gaia.stacks.repository.StackRepository; import org.apache.commons.io.output.WriterOutputStream; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Async; diff --git a/src/main/java/io/codeka/gaia/stacks/service/StackCostCalculator.java b/src/main/java/io/codeka/gaia/stacks/service/StackCostCalculator.java index d9335361c..f3a3afa5c 100644 --- a/src/main/java/io/codeka/gaia/stacks/service/StackCostCalculator.java +++ b/src/main/java/io/codeka/gaia/stacks/service/StackCostCalculator.java @@ -1,10 +1,10 @@ package io.codeka.gaia.stacks.service; +import io.codeka.gaia.modules.repository.TerraformModuleRepository; import io.codeka.gaia.stacks.bo.JobStatus; import io.codeka.gaia.stacks.bo.JobType; import io.codeka.gaia.stacks.bo.Stack; import io.codeka.gaia.stacks.repository.JobRepository; -import io.codeka.gaia.modules.repository.TerraformModuleRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; diff --git a/src/main/resources/templates/layout/sidebar.html b/src/main/resources/templates/layout/sidebar.html index b3d321858..a48ba58ba 100644 --- a/src/main/resources/templates/layout/sidebar.html +++ b/src/main/resources/templates/layout/sidebar.html @@ -1,5 +1,4 @@ - +