Skip to content
Snippets Groups Projects
Commit 21ff11a1 authored by Henrik tom Wörden's avatar Henrik tom Wörden Committed by Timm Fitschen
Browse files

MAINT: remove unused function

parent af4e68ed
No related branches found
No related tags found
No related merge requests found
...@@ -605,36 +605,6 @@ class Entity(object): ...@@ -605,36 +605,6 @@ class Entity(object):
return result_list return result_list
def print_error_tree(self, error_tree=None, print_out=True):
"""Print an error tree created with get_errors_deep. Set print_out to
False if you just want to have the resulting string returned.
If error_tree is set to None, call get_errors_deep and print the
resulting tree.
"""
if error_tree is None:
error_tree = self.get_errors_deep()
text = ""
for i in error_tree:
text += "ERROR " + str(i[0].code) + \
": " + str(i[0].description) + "\n"
for tree_entry in reversed(i[1]):
# print(tree_entry)
text += " in " + str(tree_entry.__class__) + \
" " + str(tree_entry.type) + \
": " + str(tree_entry.name) + " (ID: " + \
str(tree_entry.id) + ")"
text += "\n"
text += "\n"
if print_out:
print(text)
return text
def has_errors(self): def has_errors(self):
''' '''
@return True: if and only if this entities has any error messages. @return True: if and only if this entities has any error messages.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment