From f987a11b78d7d8cf189fb73a10f99b44d84485de Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 20 Jan 2023 18:23:00 +0300 Subject: Minor cleanup --- src/main/java/com/juick/www/SiteAttributesHandler.java | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/main/java/com/juick/www') diff --git a/src/main/java/com/juick/www/SiteAttributesHandler.java b/src/main/java/com/juick/www/SiteAttributesHandler.java index 0e1ca1db..14da8994 100644 --- a/src/main/java/com/juick/www/SiteAttributesHandler.java +++ b/src/main/java/com/juick/www/SiteAttributesHandler.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008-2020, Juick + * Copyright (C) 2008-2023, Juick * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -17,23 +17,12 @@ package com.juick.www; -import com.juick.model.AnonymousUser; -import com.juick.model.User; -import com.juick.service.UserService; -import com.juick.service.security.entities.JuickUser; -import org.springframework.security.core.Authentication; -import org.springframework.security.core.annotation.AuthenticationPrincipal; -import org.springframework.security.oauth2.jwt.Jwt; -import org.springframework.security.oauth2.server.resource.authentication.JwtAuthenticationToken; +import jakarta.servlet.http.HttpServletResponse; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.servlet.support.ServletUriComponentsBuilder; -import jakarta.servlet.http.HttpServletResponse; - -import javax.inject.Inject; - @ControllerAdvice public class SiteAttributesHandler { @ModelAttribute -- cgit v1.2.3