diff --git a/SteamWareLib/UserControl.cs b/SteamWareLib/UserControl.cs index a73c6a1..039a39e 100644 --- a/SteamWareLib/UserControl.cs +++ b/SteamWareLib/UserControl.cs @@ -148,11 +148,6 @@ namespace SteamWare // single click --> edit e.Row.Attributes["ondblclick"] = Page.ClientScript.GetPostBackClientHyperlink(grView, "Edit$" + e.Row.RowIndex); e.Row.Attributes["style"] = "cursor:pointer"; -#if false - // single click --> select - e.Row.Attributes["onclick"] = Page.ClientScript.GetPostBackClientHyperlink(grView, "Select$" + e.Row.RowIndex); - e.Row.Attributes["style"] = "cursor:pointer"; -#endif } } /// @@ -167,10 +162,6 @@ namespace SteamWare { grView.UpdateRow(grView.EditIndex, false); } -#if false - grView.EditIndex = e.NewEditIndex; - this.DataBind(); -#endif } diff --git a/SteamWareLib/logger.cs b/SteamWareLib/logger.cs index 23d250f..c817d62 100644 --- a/SteamWareLib/logger.cs +++ b/SteamWareLib/logger.cs @@ -220,21 +220,6 @@ namespace SteamWare newLogfileName(); // scrivo thread safe fatto = WriteToFileThreadSafe(_logfileName, _testo); -#if false - // aggiunge in append... - StreamWriter sw = new StreamWriter(_logfileName, true); - try - { - sw.WriteLine(_testo); - sw.Flush(); - sw.Close(); - fatto = true; - } - catch - { - fatto = false; - } -#endif return fatto; } diff --git a/SteamWareLib/memLayer.cs b/SteamWareLib/memLayer.cs index 19c8672..cacbfc7 100644 --- a/SteamWareLib/memLayer.cs +++ b/SteamWareLib/memLayer.cs @@ -1848,12 +1848,6 @@ namespace SteamWare catch { } } -#if false - else - { - lg.Error("Server REDIS non disponibile (redSaveHashList)"); - } -#endif return answ; } /// diff --git a/SteamWareLib/utils.cs b/SteamWareLib/utils.cs index 38c987c..793bc24 100644 --- a/SteamWareLib/utils.cs +++ b/SteamWareLib/utils.cs @@ -619,23 +619,6 @@ namespace SteamWare port = memLayer.ML.CRI("_PortSSL"); } -#if false - var mailer = new MimeMailer(_smtpCli, port); - mailer.User = _username; - mailer.Password = _password; - if (memLayer.ML.CRB("_enableSSL")) - { - mailer.SslType = SslMode.Tls; - //mailer.SslType = SslMode.Ssl; - } - mailer.AuthenticationMode = AuthenticationType.PlainText; - //mailer.AuthenticationMode = AuthenticationType.Base64; - - //Set a delegate function for call back - mailer.SendCompleted += compEvent; - mailer.SendMailAsync(mymessage); -#endif - var emailer = new SmtpSocketClient(); emailer.Host = _smtpCli; emailer.Port = port;