From dd8d19178be6cdbfb28d05914e476c2fdd22897c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 25 Jan 2018 15:50:48 +0100 Subject: [PATCH] Removed unused function --- pillar/web/nodes/routes.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/pillar/web/nodes/routes.py b/pillar/web/nodes/routes.py index 19ed2dfd..5af09e85 100644 --- a/pillar/web/nodes/routes.py +++ b/pillar/web/nodes/routes.py @@ -47,22 +47,6 @@ def get_node(node_id, user_id): return node.to_dict() -def get_node_children(node_id, node_type_name, user_id): - """This function is currently unused since it does not give significant - performance improvements. - """ - api = system_util.pillar_api() - if node_type_name == 'group': - published_status = ',"properties.status": "published"' - else: - published_status = '' - - children = Node.all({ - 'where': '{"parent": "%s" %s}' % (node_id, published_status), - 'embedded': '{"node_type": 1}'}, api=api) - return children.to_dict() - - @blueprint.route("//jstree") def jstree(node_id): """JsTree view.