From 3af4c218c0e70167db23a6303d2af30aff37d2fe Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 20 Aug 2020 23:40:50 -0400 Subject: Removed a bunch of stuff; Changes --- .../Editor/Attributes/MenuEntryAttribute.cs | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 Library/PackageCache/com.unity.timeline@1.2.13/Editor/Attributes/MenuEntryAttribute.cs (limited to 'Library/PackageCache/com.unity.timeline@1.2.13/Editor/Attributes/MenuEntryAttribute.cs') diff --git a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Attributes/MenuEntryAttribute.cs b/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Attributes/MenuEntryAttribute.cs deleted file mode 100644 index 29623d2..0000000 --- a/Library/PackageCache/com.unity.timeline@1.2.13/Editor/Attributes/MenuEntryAttribute.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -namespace UnityEditor.Timeline -{ - /// - /// Used to indicate path and priority of classes that are auto added to the menu - /// - [AttributeUsage(AttributeTargets.Class)] - internal class MenuEntryAttribute : Attribute - { - public readonly int priority; - public readonly string name; - public readonly string subMenuPath; - - public MenuEntryAttribute(string path, int priority) - { - path = path ?? string.Empty; - path = L10n.Tr(path); - this.priority = priority; - - int index = path.LastIndexOf('/'); - if (index >= 0) - { - name = (index == path.Length - 1) ? string.Empty : path.Substring(index + 1); - subMenuPath = path.Substring(0, index + 1); - } - else - { - name = path; - subMenuPath = string.Empty; - } - } - } -} -- cgit v1.2.3