Remove almost redundant update code
[bpdyndnsd] / src / updater.cpp
index be6d29a..07881f4 100644 (file)
@@ -259,17 +259,6 @@ void Updater::update_services() const
             continue;
         }
 
-        // Check if the service will be updated for the first time.
-        if ( lastupdated == 0 )
-        {
-            // Update for the firt time.
-            Log->print_update_service_firttime(hostname, ip_dns_recheck, ip_host);
-            service->update(ip_host,current_time);
-
-            // Update done, go to next service
-            continue;
-        }
-
         // We already have updated, check if the IP set in last update differs from the actual host's ip.
         if ( ip_last_update != ip_host )
         {