From 0ea0e7835e4a41ec50376819f761d009c6698bea Mon Sep 17 00:00:00 2001 From: polaris6 Date: Mon, 13 Jun 2022 21:00:07 +0800 Subject: [PATCH] Remove unnecessary bind in ui module --- .../src/main/java/io/trino/server/ui/OAuth2WebUiModule.java | 2 -- .../src/main/java/io/trino/server/ui/WebUiModule.java | 2 -- 2 files changed, 4 deletions(-) diff --git a/core/trino-main/src/main/java/io/trino/server/ui/OAuth2WebUiModule.java b/core/trino-main/src/main/java/io/trino/server/ui/OAuth2WebUiModule.java index d9f07ff642ba..f2aa2ef3aa0d 100644 --- a/core/trino-main/src/main/java/io/trino/server/ui/OAuth2WebUiModule.java +++ b/core/trino-main/src/main/java/io/trino/server/ui/OAuth2WebUiModule.java @@ -19,7 +19,6 @@ import io.trino.server.security.oauth2.OAuth2ServiceModule; import static com.google.inject.multibindings.OptionalBinder.newOptionalBinder; -import static io.airlift.jaxrs.JaxrsBinder.jaxrsBinder; public class OAuth2WebUiModule extends AbstractConfigurationAwareModule @@ -29,7 +28,6 @@ protected void setup(Binder binder) { newOptionalBinder(binder, OAuth2WebUiInstalled.class).setBinding().toInstance(OAuth2WebUiInstalled.INSTANCE); binder.bind(WebUiAuthenticationFilter.class).to(OAuth2WebUiAuthenticationFilter.class).in(Scopes.SINGLETON); - jaxrsBinder(binder).bind(OAuth2WebUiLogoutResource.class); install(new OAuth2ServiceModule()); } } diff --git a/core/trino-main/src/main/java/io/trino/server/ui/WebUiModule.java b/core/trino-main/src/main/java/io/trino/server/ui/WebUiModule.java index 34c328337262..8210e58abf5f 100644 --- a/core/trino-main/src/main/java/io/trino/server/ui/WebUiModule.java +++ b/core/trino-main/src/main/java/io/trino/server/ui/WebUiModule.java @@ -26,8 +26,6 @@ public class WebUiModule @Override protected void setup(Binder binder) { - jaxrsBinder(binder).bind(WebUiStaticResource.class); - configBinder(binder).bindConfig(WebUiConfig.class); if (buildConfigObject(WebUiConfig.class).isEnabled()) {