From 3ad0f0534b49c9cb7ccde4d568a627d2f8e420ec Mon Sep 17 00:00:00 2001 From: David Glick Date: Sun, 1 Oct 2023 14:09:47 +0200 Subject: [PATCH] Remove unused code (#1717) --- news/1703.internal | 1 + src/plone/restapi/services/navigation/get.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 news/1703.internal diff --git a/news/1703.internal b/news/1703.internal new file mode 100644 index 0000000000..6d5ce45b01 --- /dev/null +++ b/news/1703.internal @@ -0,0 +1 @@ +Remove unused code. @davisagli diff --git a/src/plone/restapi/services/navigation/get.py b/src/plone/restapi/services/navigation/get.py index 3201d9e2df..665f22da01 100644 --- a/src/plone/restapi/services/navigation/get.py +++ b/src/plone/restapi/services/navigation/get.py @@ -163,8 +163,6 @@ def render_item(self, item, path): item.update({"items": sub}) - if "title" in item and item["title"]: - item["title"] = item["title"] if "path" in item: del item["path"] return item