From 86199769a432defc4000df7901fd170b8cba1a7f Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Mon, 5 Jul 2021 13:07:26 +0200
Subject: [PATCH] remove unused code

---
 src/caosdb/common/models.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py
index aae35f8f..b054496d 100644
--- a/src/caosdb/common/models.py
+++ b/src/caosdb/common/models.py
@@ -831,7 +831,6 @@ class Entity(object):
         """
 
         if xml is None:
-            xml = etree.Element("Entity")
             # use role as xml tag name, fall-back to "Entity"
             elem_tag = "Entity" if self.role is None else self.role
             xml = etree.Element(elem_tag)
-- 
GitLab