From 2a9abc9d4c2793fbdb972b50ed34126a680f60ec Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Sat, 15 Jun 2024 19:25:17 -0400 Subject: [PATCH] Delete unused `nic_easydns_force_update` function --- ddclient.in | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/ddclient.in b/ddclient.in index 0121397..4af3997 100755 --- a/ddclient.in +++ b/ddclient.in @@ -4675,30 +4675,6 @@ sub nic_zoneedit1_update { } } -###################################################################### -## nic_easydns_force_update -###################################################################### -sub nic_easydns_force_update { - my $host = shift; - my $update = 0; - - if ($config{$host}{'mx'} ne $recap{$host}{'mx'}) { - info("forcing updating %s because 'mx' has changed to %s.", $host, $config{$host}{'mx'}); - $update = 1; - - } elsif ($config{$host}{'mx'} && (ynu($config{$host}{'backupmx'}, 1, 2, 3) ne ynu($config{$host}{'backupmx'}, 1, 2, 3))) { - info("forcing updating %s because 'backupmx' has changed to %s.", $host, ynu($config{$host}{'backupmx'}, "YES", "NO", "NO")); - $update = 1; - - } elsif ($config{$host}{'static'} ne $recap{$host}{'static'}) { - - info("forcing updating %s because 'static' has changed to %s.", $host, ynu($config{$host}{'static'}, "YES", "NO", "NO")); - $update = 1; - - } - return $update; -} - ###################################################################### ## nic_easydns_examples ######################################################################