From dc29ccbcd688c24885c77ce4ca5d3464d509e62c Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Mon, 16 Sep 2024 19:01:00 +0200 Subject: [PATCH] Fix warnings in Startup --- src/main/java/eu/m724/talkpages/Startup.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/eu/m724/talkpages/Startup.java b/src/main/java/eu/m724/talkpages/Startup.java index c7c03ee..a0fefcb 100644 --- a/src/main/java/eu/m724/talkpages/Startup.java +++ b/src/main/java/eu/m724/talkpages/Startup.java @@ -4,7 +4,6 @@ import eu.m724.talkpages.orm.entity.auth.Account; import eu.m724.talkpages.orm.entity.content.Page; import eu.m724.talkpages.orm.entity.content.PageRevision; import eu.m724.talkpages.theme.ThemeService; -import io.quarkus.runtime.LaunchMode; import io.quarkus.runtime.StartupEvent; import io.vertx.ext.web.Router; import io.vertx.ext.web.handler.StaticHandler; @@ -18,15 +17,12 @@ import org.eclipse.microprofile.config.inject.ConfigProperty; @Singleton public class Startup { @Inject - LaunchMode launchMode; - - @Inject - ThemeService themeService; + private ThemeService themeService; @ConfigProperty(name = "talkpages.systemUser.name") private String username; - void installStaticRoute(@Observes StartupEvent startupEvent, Router router) { + void installStaticRoute(@Observes StartupEvent ignoredEvent, Router router) { router.route() .path("/static/*") .handler(StaticHandler.create("static/"));