From cca8433b0edd5cd4f33dc5ee2608c818b38fbec8 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 30 Apr 2022 13:00:45 +0530 Subject: [PATCH] DhcpServer: removed the remove lease methods. --- DnsServerCore/Dhcp/DhcpServer.cs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/DnsServerCore/Dhcp/DhcpServer.cs b/DnsServerCore/Dhcp/DhcpServer.cs index 03993964..f0bca697 100644 --- a/DnsServerCore/Dhcp/DhcpServer.cs +++ b/DnsServerCore/Dhcp/DhcpServer.cs @@ -1368,26 +1368,6 @@ namespace DnsServerCore.Dhcp SaveScopeFile(scope); } - public void RemoveLeaseByHardwareAddress(string scopeName, string hardwareAddress) - { - Scope scope = GetScope(scopeName); - if (scope == null) - throw new DhcpServerException("DHCP scope does not exists: " + scopeName); - - Lease removedLease = scope.RemoveLeaseByHardwareAddress(hardwareAddress); - UpdateDnsAuthZone(false, scope, removedLease); - } - - public void RemoveLeaseByClientIdentifier(string scopeName, string clientIdentifier) - { - Scope scope = GetScope(scopeName); - if (scope == null) - throw new DhcpServerException("DHCP scope does not exists: " + scopeName); - - Lease removedLease = scope.RemoveLeaseByClientIdentifier(clientIdentifier); - UpdateDnsAuthZone(false, scope, removedLease); - } - public IDictionary GetAddressHostNameMap() { Dictionary map = new Dictionary();