diff --git a/TuneUp/ProfiledNodeViewModel.cs b/TuneUp/ProfiledNodeViewModel.cs index c6679a3..e6f06d2 100644 --- a/TuneUp/ProfiledNodeViewModel.cs +++ b/TuneUp/ProfiledNodeViewModel.cs @@ -62,41 +62,6 @@ internal set /// public bool IsGroupExecutionTime => NodeModel == null && GroupModel == null; - /// - /// Getting the original name before graph author renamed the node - /// - private static string GetOriginalName(NodeModel node) - { - if (node == null) return string.Empty; - // For dummy node, return the current name so that does not appear to be renamed - if (node is DummyNode) - { - return node.Name; - } - if (node.IsCustomFunction) - { - // If the custom node is not loaded, return the current name so that does not appear to be renamed - if ((node as Function).State == ElementState.Error && (node as Function).Definition.IsProxy) - { - return node.Name; - } - // If the custom node is loaded, return original name as usual - var customNodeFunction = node as Function; - return customNodeFunction?.Definition.DisplayName; - } - - var function = node as DSFunctionBase; - if (function != null) - return function.Controller.Definition.DisplayName; - - var nodeType = node.GetType(); - var elNameAttrib = nodeType.GetCustomAttributes(false).FirstOrDefault(); - if (elNameAttrib != null) - return elNameAttrib.Name; - - return nodeType.FullName; - } - /// /// Prefix string of execution time. ///