From 68b5eee0f40222bdd9c26c21e24a4c387e55a747 Mon Sep 17 00:00:00 2001
From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch>
Date: Mon, 12 Feb 2018 23:50:14 +0100
Subject: [PATCH] Omit explicit setting of default values.

They are already set by the XmlSerializer class to the default value of
the corresponding data type.
---
 ATxCommon/Serializables/ServiceConfig.cs | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/ATxCommon/Serializables/ServiceConfig.cs b/ATxCommon/Serializables/ServiceConfig.cs
index 9fca6a7..98cd024 100644
--- a/ATxCommon/Serializables/ServiceConfig.cs
+++ b/ATxCommon/Serializables/ServiceConfig.cs
@@ -16,18 +16,11 @@ namespace ATxCommon.Serializables
         [XmlIgnore] private static readonly Logger Log = LogManager.GetCurrentClassLogger();
 
         public ServiceConfig() {
+            Log.Trace("ServiceConfig() constructor, setting defaults.");
             // set values for the optional XML elements:
-            SmtpHost = "";
             SmtpPort = 25;
-            SmtpUserCredential = "";
-            SmtpPasswortCredential = "";
-            EmailPrefix = "";
-            AdminEmailAdress = "";
-            AdminDebugEmailAdress = "";
             GraceNotificationDelta = 720;
 
-            InterPacketGap = 0;
-
             EnforceInheritedACLs = true;
         }
 
-- 
GitLab