From faad05199c40b6de0bc9b3a5cf21313d49a5ea9b Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Thu, 20 Apr 2017 09:31:48 +0200 Subject: [PATCH] pulizia USING inutilizzate --- MTC_Adapter/MTC_Adapter/AdapterConf.cs | 3 +-- MTC_Adapter/MTC_Adapter/AdapterFanuc.cs | 8 +++---- MTC_Adapter/MTC_Adapter/AdapterOsai.cs | 29 +++++-------------------- 3 files changed, 10 insertions(+), 30 deletions(-) diff --git a/MTC_Adapter/MTC_Adapter/AdapterConf.cs b/MTC_Adapter/MTC_Adapter/AdapterConf.cs index c07b91d..807f466 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterConf.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterConf.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Xml; using System.Xml.Serialization; namespace MTC_Adapter @@ -382,7 +381,7 @@ namespace MTC_Adapter /// Elenco riferimento dati x recupero (es posizioni memoria separate da #) /// public List> dataRefList; - + /// /// init empty /// diff --git a/MTC_Adapter/MTC_Adapter/AdapterFanuc.cs b/MTC_Adapter/MTC_Adapter/AdapterFanuc.cs index a2023e1..7851bd3 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterFanuc.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterFanuc.cs @@ -1,10 +1,10 @@ -using System; +using CMSCncLib.CNC; +using MTC; +using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Text; -using CMSCncLib.CNC; -using System.IO; -using MTC; namespace MTC_Adapter { diff --git a/MTC_Adapter/MTC_Adapter/AdapterOsai.cs b/MTC_Adapter/MTC_Adapter/AdapterOsai.cs index 9553994..a03727b 100644 --- a/MTC_Adapter/MTC_Adapter/AdapterOsai.cs +++ b/MTC_Adapter/MTC_Adapter/AdapterOsai.cs @@ -1,9 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using CMSCncLib.CNC; -using System.IO; +using CMSCncLib.CNC; using MTC; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; namespace MTC_Adapter { @@ -695,25 +695,6 @@ namespace MTC_Adapter } } } -#if false - /// - /// Gestione strobe UserAction: salva dati e gestione ACK - /// - /// - /// - /// - /// - private void gestStrobeUnknown(int bitNum, ref byte[] retACK_DW1, ref string UserAction, string azione) - { - if (STRB_DW1.HasFlag((StFlag32)Math.Pow(2, bitNum))) - { - // salvo evento UserAction in variabile... - UserAction += azione; - // memorizzo allarme nel vettore ack.... - retACK_DW1 = utils.setBitOnStFlag(retACK_DW1, true, bitNum); - } - } -#endif /// /// Gestione strobe UserAction: salva dati e gestione ACK