Skip to content

Commit 653504e

Browse files
committed
remove unused code
1 parent 497b9e3 commit 653504e

File tree

1 file changed

+2
-53
lines changed

1 file changed

+2
-53
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 2 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,8 @@ public class ModelExporter : System.IDisposable
8282
// from being passed to command, thus resulting in OnContextItem()
8383
// being called only once regardless of what is selected.
8484
const string MenuItemName = "GameObject/Export To FBX...";
85-
const string ModelOnlyMenuItemName = "GameObject/Export Model Only...";
8685

87-
const string ClipMenuItemName = "GameObject/Export All Recorded Animation Clips...";
88-
const string TimelineClipMenuItemName = "GameObject/Export Selected Timeline Clip...";
89-
90-
const string AnimOnlyMenuItemName = "GameObject/Export Animation Only...";
91-
92-
const string FileBaseName = "Untitled";
86+
const string TimelineClipMenuItemName = "GameObject/Export Selected Timeline Clip...";
9387

9488
const string ProgressBarTitle = "Fbx Export";
9589

@@ -3112,40 +3106,6 @@ public static bool OnValidateMenuItem ()
31123106
return true;
31133107
}
31143108

3115-
/// <summary>
3116-
/// Validate the menu item defined by the function ModelOnlyOnContextItem.
3117-
/// </summary>
3118-
[MenuItem (ModelOnlyMenuItemName, true, 30)]
3119-
public static bool ModelOnlyOnValidateMenuItem ()
3120-
{
3121-
return true;
3122-
}
3123-
3124-
/// <summary>
3125-
// Validate the menu item defined by the function above.
3126-
/// </summary>
3127-
[MenuItem (AnimOnlyMenuItemName, true, 30)]
3128-
public static bool OnValidateAnimOnlyMenuItem ()
3129-
{
3130-
Object[] selection = Selection.objects;
3131-
3132-
if (selection == null || selection.Length == 0)
3133-
{
3134-
return false;
3135-
}
3136-
3137-
foreach (Object obj in selection)
3138-
{
3139-
GameObject gameObj = obj as GameObject;
3140-
if (gameObj != null && (gameObj.GetComponent<Animation>() != null || gameObj.GetComponent<Animator>() != null))
3141-
{
3142-
return true;
3143-
}
3144-
}
3145-
3146-
return false;
3147-
}
3148-
31493109
public static void DisplayNoSelectionDialog()
31503110
{
31513111
UnityEditor.EditorUtility.DisplayDialog (
@@ -3596,18 +3556,7 @@ private static string MakeFileName (string basename = "test", string extension =
35963556
{
35973557
return basename + "." + extension;
35983558
}
3599-
3600-
3601-
private static string GetExportFilePath(string filenameSuggestion = ""){
3602-
var directory = string.IsNullOrEmpty (LastFilePath)
3603-
? Application.dataPath
3604-
: System.IO.Path.GetDirectoryName (LastFilePath);
3605-
3606-
var title = string.Format ("Export To FBX ({0})", FileBaseName);
3607-
3608-
return EditorUtility.SaveFilePanel (title, directory, filenameSuggestion, kFBXFileExtension);
3609-
}
3610-
3559+
36113560
private static void OnExport ()
36123561
{
36133562
GameObject [] selectedGOs = Selection.GetFiltered<GameObject> (SelectionMode.TopLevel);

0 commit comments

Comments
 (0)