diff --git a/src/DynamoUtilities/Properties/AssemblyInfo.cs b/src/DynamoUtilities/Properties/AssemblyInfo.cs index 1bc1af79974..c3981334ac4 100644 --- a/src/DynamoUtilities/Properties/AssemblyInfo.cs +++ b/src/DynamoUtilities/Properties/AssemblyInfo.cs @@ -12,7 +12,6 @@ // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("fdd60a60-c6e4-4f11-b583-8a417061c043")] [assembly: InternalsVisibleTo("DynamoCore")] -[assembly: InternalsVisibleTo("CoreNodeModels")] [assembly: InternalsVisibleTo("DynamoCoreWpf")] [assembly: InternalsVisibleTo("DynamoCoreTests")] [assembly: InternalsVisibleTo("DynamoCoreWpfTests")] diff --git a/src/Libraries/CoreNodeModels/Remember.cs b/src/Libraries/CoreNodeModels/Remember.cs index a84846e79e6..527ee7001ad 100644 --- a/src/Libraries/CoreNodeModels/Remember.cs +++ b/src/Libraries/CoreNodeModels/Remember.cs @@ -5,12 +5,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; -using System.Linq; -using System.Reflection; -using System.Text; -using System.Threading.Tasks; using VMDataBridge; -using System.Collections.Specialized; namespace CoreNodeModels { @@ -28,7 +23,6 @@ namespace CoreNodeModels public class Remember : NodeModel { private string cache = ""; - private string updatedMessage = ""; [JsonProperty("Cache")] public string Cache @@ -49,14 +43,12 @@ public string Cache private Remember(IEnumerable inPorts, IEnumerable outPorts) : base(inPorts, outPorts) { PropertyChanged += OnPropertyChanged; - Infos.CollectionChanged += ProcessInfos; } public Remember() { RegisterAllPorts(); PropertyChanged += OnPropertyChanged; - Infos.CollectionChanged += ProcessInfos; } private void OnPropertyChanged(object sender, PropertyChangedEventArgs e) @@ -76,34 +68,6 @@ private void OnPropertyChanged(object sender, PropertyChangedEventArgs e) } } - /// - /// Handle updating the error message to remove the non-pointer message. - /// - /// - /// - private void ProcessInfos(object sender, NotifyCollectionChangedEventArgs e) - { - if(Infos.Count == 0 || State != ElementState.Warning) return; - if(Infos.Any(x => x.State == ElementState.Warning && x.Message != updatedMessage)) - { - var infos = new List { }; - foreach (var info in Infos) - { - if (info.State == ElementState.Warning) - { - string[] errorMessages = - info.Message.Split(new[] { "\r\n", "\n" }, StringSplitOptions.None); - updatedMessage = errorMessages.Last(); - - infos.Add(new Info(updatedMessage, ElementState.Warning)); - } - } - - Infos.RemoveWhere(x => x.State == ElementState.Warning); - Infos.AddRange(infos); - } - } - protected override void OnBuilt() { base.OnBuilt(); @@ -113,7 +77,6 @@ protected override void OnBuilt() public override void Dispose() { PropertyChanged -= OnPropertyChanged; - Infos.CollectionChanged -= ProcessInfos; base.Dispose(); DataBridge.Instance.UnregisterCallback(GUID.ToString()); }