From 222f33f765cfab36eaede6a3e6067d5ab5e1493d Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Sat, 21 Oct 2023 08:26:17 +0100 Subject: [PATCH] Remove unused method parameters --- .../samples/petclinic/owner/OwnerController.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java b/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java index 2835330..63850cf 100644 --- a/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java +++ b/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java @@ -35,8 +35,6 @@ import io.github.wimdeblauwe.htmx.spring.boot.mvc.HtmxResponse; import io.github.wimdeblauwe.htmx.spring.boot.mvc.HxRequest; -import jakarta.servlet.http.HttpServletRequest; -import jakarta.servlet.http.HttpServletResponse; import jakarta.validation.Valid; /** @@ -120,15 +118,14 @@ public String htmxInitFindForm() { } @GetMapping("/owners") - public String ownersList(@RequestParam(defaultValue = "1") int page, Owner owner, BindingResult result, Model model, - HttpServletResponse response) { + public String ownersList(@RequestParam(defaultValue = "1") int page, Owner owner, BindingResult result, Model model) { return processFindForm(page, owner, result, model, "owners/findOwners", "owners/ownersList"); } @HxRequest @GetMapping("/owners") public HtmxResponse htmxOwnersList(@RequestParam(defaultValue = "1") int page, Owner owner, BindingResult result, - Model model, HttpServletResponse response) { + Model model) { String view = processFindForm(page, owner, result, model, FRAGMENTS_OWNERS_FIND_FORM, "fragments/owners :: list"); return new HtmxResponse().addTemplate(view).pushHistory("/owners/find?lastName=" + owner.getLastName());