From 876c63182edfa8bef8b50a4934a02e6010e3ba17 Mon Sep 17 00:00:00 2001 From: Anna Beddow Date: Wed, 17 Apr 2024 09:51:11 +0100 Subject: [PATCH] Remove printlns --- common/app/model/dotcomrendering/ElementsEnhancer.scala | 5 ----- 1 file changed, 5 deletions(-) diff --git a/common/app/model/dotcomrendering/ElementsEnhancer.scala b/common/app/model/dotcomrendering/ElementsEnhancer.scala index 5c1b8b0606a..e9d7bacef48 100644 --- a/common/app/model/dotcomrendering/ElementsEnhancer.scala +++ b/common/app/model/dotcomrendering/ElementsEnhancer.scala @@ -9,7 +9,6 @@ object ElementsEnhancer { // Also look for "03feb394-a17d-4430-8384-edd1891e0d01" def enhanceElement(element: JsValue): JsValue = { - println(">>> enhanceElement") val elementWithId = element.as[JsObject] ++ Json.obj("elementId" -> java.util.UUID.randomUUID.toString) val elementType = elementWithId.value("_type").as[String] val elementIsList = elementType == "model.dotcomrendering.pageElements.ListBlockElement" @@ -24,8 +23,6 @@ object ElementsEnhancer { } elementWithId ++ Json.obj("items" -> listItemsWithIds) } else if (elementIsTimeline) { - println(">>> enhanceElement : elementIsTimeline") - val sectionsList = elementWithId.value("sections").as[List[JsObject]] val sectionListWithIds = sectionsList.map { section => val eventList = section.value("events").as[List[JsObject]] @@ -34,9 +31,7 @@ object ElementsEnhancer { val bodyListWithIds = bodyList.value.map(currentBlock => { enhanceElement(currentBlock) }) - event ++ Json.obj("body" -> bodyListWithIds) - } section ++ Json.obj("events" -> eventListWithIds) }