From d0785308d4f694d93d92d2280e0fcda04ea343dc Mon Sep 17 00:00:00 2001 From: Hannes Date: Sun, 17 May 2020 12:54:30 +0200 Subject: [PATCH] code cleanup --- .../org/hso/ecommerce/controller/shop/ShopIndexController.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopIndexController.java b/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopIndexController.java index 176cf2f..073f722 100644 --- a/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopIndexController.java +++ b/prototype/src/main/java/org/hso/ecommerce/controller/shop/ShopIndexController.java @@ -2,7 +2,6 @@ package org.hso.ecommerce.controller.shop; import org.hso.ecommerce.action.shop.GetRandomArticlesAction; import org.hso.ecommerce.entities.shop.Article; -import org.hso.ecommerce.entities.warehouse.WarehouseBookingPositionSlotEntry; import org.hso.ecommerce.repos.shop.ArticleRepository; import org.hso.ecommerce.repos.warehouse.WarehouseBookingPositionSlotEntryRepository; import org.springframework.beans.factory.annotation.Autowired; @@ -12,7 +11,6 @@ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import javax.servlet.http.HttpSession; -import java.util.ArrayList; import java.util.List; @Controller @@ -34,7 +32,6 @@ public class ShopIndexController { public String shop(Model model, HttpSession session) { List
commercialArticles = GetRandomArticlesAction.getRandomArticles(8, articleRepository.getAdvertisedArticles()); - model.addAttribute("commercialArticles", commercialArticles); boolean isLoggedIn = false;