From fdfad228cb92df145d21d2d7e74672ac715c957e Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Mon, 3 Aug 2020 21:25:19 +0200 Subject: [PATCH] Removal of dead local store --- core/builder/src/test/java/io/quarkus/builder/BasicTests.java | 1 - .../java/io/quarkus/kubernetes/deployment/MinikubeHandler.java | 2 -- .../resteasy/runtime/standalone/VertxRequestHandler.java | 1 - .../test/java/io/quarkus/smallrye/metrics/test/MeasureThis.java | 1 - .../java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java | 1 - 5 files changed, 6 deletions(-) diff --git a/core/builder/src/test/java/io/quarkus/builder/BasicTests.java b/core/builder/src/test/java/io/quarkus/builder/BasicTests.java index f8dabe7f37059..f9efe4c9a36ca 100644 --- a/core/builder/src/test/java/io/quarkus/builder/BasicTests.java +++ b/core/builder/src/test/java/io/quarkus/builder/BasicTests.java @@ -46,7 +46,6 @@ public void execute(final BuildContext context) { @Test public void testFailure() throws ChainBuildException, BuildException { final BuildChainBuilder builder = BuildChain.builder(); - final AtomicBoolean ran = new AtomicBoolean(); BuildStepBuilder stepBuilder = builder.addBuildStep(new BuildStep() { @Override public void execute(final BuildContext context) { diff --git a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/MinikubeHandler.java b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/MinikubeHandler.java index 403805f96d679..e0b56ccba9071 100644 --- a/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/MinikubeHandler.java +++ b/extensions/kubernetes/vanilla/deployment/src/main/java/io/quarkus/kubernetes/deployment/MinikubeHandler.java @@ -214,8 +214,6 @@ public ConfigurationSupplier getFallbackConfig() { private static ImageConfiguration getImageConfiguration(Project project, KubernetesConfig appConfig, Configurators configurators) { - Optional origin = configurators.getImageConfig(BuildServiceFactories.supplierMatches(project)); - return configurators.getImageConfig(BuildServiceFactories.supplierMatches(project)).map(i -> merge(appConfig, i)) .orElse(ImageConfiguration.from(appConfig)); } diff --git a/extensions/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxRequestHandler.java b/extensions/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxRequestHandler.java index 8f6a97b66bd82..32c55d692adf4 100644 --- a/extensions/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxRequestHandler.java +++ b/extensions/resteasy/runtime/src/main/java/io/quarkus/resteasy/runtime/standalone/VertxRequestHandler.java @@ -105,7 +105,6 @@ private void dispatch(RoutingContext routingContext, InputStream is, VertxOutput ManagedContext requestContext = beanContainer.requestContext(); requestContext.activate(); routingContext.remove(QuarkusHttpUser.AUTH_FAILURE_HANDLER); - QuarkusHttpUser user = (QuarkusHttpUser) routingContext.user(); if (association != null) { association.setIdentity(QuarkusHttpUser.getSecurityIdentity(routingContext, null)); } diff --git a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MeasureThis.java b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MeasureThis.java index 4acffd0bcec81..af5e43c7166e4 100644 --- a/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MeasureThis.java +++ b/extensions/smallrye-metrics/deployment/src/test/java/io/quarkus/smallrye/metrics/test/MeasureThis.java @@ -24,7 +24,6 @@ public class MeasureThis { static MetricsFactory.TimeRecorder timeRecorder; static Consumer registerMetrics() { - MeasureThis mt = new MeasureThis(); return new Consumer() { @Override public void accept(MetricsFactory metricsFactory) { diff --git a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java index c2cbaf82bc514..fffc6fc332951 100644 --- a/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java +++ b/extensions/vertx-http/runtime/src/main/java/io/quarkus/vertx/http/runtime/VertxHttpRecorder.java @@ -429,7 +429,6 @@ private static void doServerStart(Vertx vertx, HttpBuildTimeConfig httpBuildTime HttpServerOptions httpServerOptions = createHttpServerOptions(httpConfiguration, launchMode, websocketSubProtocols); HttpServerOptions domainSocketOptions = createDomainSocketOptions(httpConfiguration, websocketSubProtocols); HttpServerOptions sslConfig = createSslOptions(httpBuildTimeConfig, httpConfiguration, launchMode); - ForwardingProxyOptions forwardingProxyOptions = ForwardingProxyOptions.from(httpConfiguration); if (httpConfiguration.insecureRequests != HttpConfiguration.InsecureRequests.ENABLED && sslConfig == null) { throw new IllegalStateException("Cannot set quarkus.http.redirect-insecure-requests without enabling SSL.");