From 04c1619eb48155a0e2f96c3609407b25a7053e30 Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Thu, 3 Jun 2021 20:27:24 -0400 Subject: [PATCH] Remove unused function --- .../migrations/0048_prefix_populate_depth_children.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/netbox/ipam/migrations/0048_prefix_populate_depth_children.py b/netbox/ipam/migrations/0048_prefix_populate_depth_children.py index b1c2136b8..279f899f6 100644 --- a/netbox/ipam/migrations/0048_prefix_populate_depth_children.py +++ b/netbox/ipam/migrations/0048_prefix_populate_depth_children.py @@ -4,17 +4,6 @@ from django.db import migrations from ipam.utils import rebuild_prefixes -def push_to_stack(stack, prefix): - # Increment child count on parent nodes - for n in stack: - n['children'] += 1 - stack.append({ - 'pk': prefix['pk'], - 'prefix': prefix['prefix'], - 'children': 0, - }) - - def populate_prefix_hierarchy(apps, schema_editor): """ Populate _depth and _children attrs for all Prefixes.