Skip to content

Commit

Permalink
Remove unnecessary bind in ui module
Browse files Browse the repository at this point in the history
  • Loading branch information
polaris6 committed Jun 14, 2022
1 parent b8faa60 commit 0ea0e78
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 0ea0e78

Please sign in to comment.