From f206741e3aed3c742c5b0d034c23a96864b9528a Mon Sep 17 00:00:00 2001 From: Chris Cameron Date: Wed, 27 Sep 2017 10:32:44 -0400 Subject: [PATCH] CrestronUtils becomes ProcessorUtils --- .../ICD.Common.Utils_SimplSharp.csproj | 2 +- .../{CrestronUtils.cs => ProcessorUtils.cs} | 34 +++---------------- 2 files changed, 5 insertions(+), 31 deletions(-) rename ICD.Common.Utils/{CrestronUtils.cs => ProcessorUtils.cs} (83%) diff --git a/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj b/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj index 52ea880..199025f 100644 --- a/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj +++ b/ICD.Common.Utils/ICD.Common.Utils_SimplSharp.csproj @@ -100,7 +100,7 @@ - + diff --git a/ICD.Common.Utils/CrestronUtils.cs b/ICD.Common.Utils/ProcessorUtils.cs similarity index 83% rename from ICD.Common.Utils/CrestronUtils.cs rename to ICD.Common.Utils/ProcessorUtils.cs index 588aa38..ed6f84f 100644 --- a/ICD.Common.Utils/CrestronUtils.cs +++ b/ICD.Common.Utils/ProcessorUtils.cs @@ -1,14 +1,12 @@ -#if SIMPLSHARP -using System; +using System; using System.Text.RegularExpressions; -using Crestron.SimplSharp; using ICD.Common.Properties; using ICD.Common.Services; using ICD.Common.Services.Logging; namespace ICD.Common.Utils { - public static class CrestronUtils + public static class ProcessorUtils { private const string MODEL_NAME_REGEX = @"^(\S*)"; private const string MODEL_VERSION_REGEX = @" [[]v(\S*)"; @@ -20,22 +18,6 @@ namespace ICD.Common.Utils #region Properties - /// - /// Gets the default mac address of the processor. - /// - [PublicAPI] - public static string DefaultMacAddress - { - get - { - const CrestronEthernetHelper.ETHERNET_PARAMETER_TO_GET param = - CrestronEthernetHelper.ETHERNET_PARAMETER_TO_GET.GET_MAC_ADDRESS; - const EthernetAdapterType type = EthernetAdapterType.EthernetLANAdapter; - short id = CrestronEthernetHelper.GetAdapterdIdForSpecifiedAdapterType(type); - return CrestronEthernetHelper.GetEthernetParameter(param, id); - } - } - /// /// Gets the version text from the console. /// @@ -49,7 +31,7 @@ namespace ICD.Common.Utils { ServiceProvider.TryGetService() .AddEntry(eSeverity.Warning, "{0} - Failed to send console command \"{1}\"", - typeof(CrestronUtils).Name, "version"); + typeof(ProcessorUtils).Name, "version"); } } @@ -200,17 +182,9 @@ namespace ICD.Common.Utils { ServiceProvider.TryGetService() .AddEntry(eSeverity.Warning, "{0} - Failed to send console command \"{1}\"", - typeof(CrestronUtils).Name, RAMFREE_COMMAND); + typeof(ProcessorUtils).Name, RAMFREE_COMMAND); } return ramfree; } - - [PublicAPI] - public static string GetMilliseconds() - { - return IcdEnvironment.GetLocalTime().ToString("fff"); - } } } - -#endif