From 6df2d0ae378e5e9803a08fea8b7e128909633a32 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 10 Apr 2021 13:36:54 +0530 Subject: [PATCH] ZoneTree: code refactoring done. --- DnsServerCore/Dns/Zones/ZoneTree.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DnsServerCore/Dns/Zones/ZoneTree.cs b/DnsServerCore/Dns/Zones/ZoneTree.cs index 4b0e5524..880423da 100644 --- a/DnsServerCore/Dns/Zones/ZoneTree.cs +++ b/DnsServerCore/Dns/Zones/ZoneTree.cs @@ -27,7 +27,7 @@ namespace DnsServerCore.Dns.Zones { #region private - private Node GetNextSubDomainZoneNode(Node current, int baseDepth) + private static Node GetNextSubDomainZoneNode(Node current, int baseDepth) { int k = 0; @@ -84,7 +84,7 @@ namespace DnsServerCore.Dns.Zones return null; } - private Node GetNextChildZoneNode(Node current, int baseDepth) + private static Node GetNextChildZoneNode(Node current, int baseDepth) { int k = 0; @@ -132,7 +132,7 @@ namespace DnsServerCore.Dns.Zones return null; } - private byte[] GetNodeKey(Node node) + private static byte[] GetNodeKey(Node node) { byte[] key = new byte[node.Depth]; int i = node.Depth - 1; @@ -370,7 +370,7 @@ namespace DnsServerCore.Dns.Zones return null; } - private bool SubDomainExists(byte[] key, Node closestNode) + private static bool SubDomainExists(byte[] key, Node closestNode) { if (!closestNode.HasChildren) return false;