Skip to content

Commit 459b19b

Browse files
authored
Merge pull request #346 from Unity-Technologies/UNI-41947-remove-unused-code
UNI-41947 remove unused code
2 parents 99c2e0a + 653504e commit 459b19b

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

@@ -3401,40 +3395,6 @@ public static bool OnValidateMenuItem ()
34013395
return true;
34023396
}
34033397

3404-
/// <summary>
3405-
/// Validate the menu item defined by the function ModelOnlyOnContextItem.
3406-
/// </summary>
3407-
[MenuItem (ModelOnlyMenuItemName, true, 30)]
3408-
public static bool ModelOnlyOnValidateMenuItem ()
3409-
{
3410-
return true;
3411-
}
3412-
3413-
/// <summary>
3414-
// Validate the menu item defined by the function above.
3415-
/// </summary>
3416-
[MenuItem (AnimOnlyMenuItemName, true, 30)]
3417-
public static bool OnValidateAnimOnlyMenuItem ()
3418-
{
3419-
Object[] selection = Selection.objects;
3420-
3421-
if (selection == null || selection.Length == 0)
3422-
{
3423-
return false;
3424-
}
3425-
3426-
foreach (Object obj in selection)
3427-
{
3428-
GameObject gameObj = obj as GameObject;
3429-
if (gameObj != null && (gameObj.GetComponent<Animation>() != null || gameObj.GetComponent<Animator>() != null))
3430-
{
3431-
return true;
3432-
}
3433-
}
3434-
3435-
return false;
3436-
}
3437-
34383398
public static void DisplayNoSelectionDialog()
34393399
{
34403400
UnityEditor.EditorUtility.DisplayDialog (
@@ -3885,18 +3845,7 @@ private static string MakeFileName (string basename = "test", string extension =
38853845
{
38863846
return basename + "." + extension;
38873847
}
3888-
3889-
3890-
private static string GetExportFilePath(string filenameSuggestion = ""){
3891-
var directory = string.IsNullOrEmpty (LastFilePath)
3892-
? Application.dataPath
3893-
: System.IO.Path.GetDirectoryName (LastFilePath);
3894-
3895-
var title = string.Format ("Export To FBX ({0})", FileBaseName);
3896-
3897-
return EditorUtility.SaveFilePanel (title, directory, filenameSuggestion, kFBXFileExtension);
3898-
}
3899-
3848+
39003849
private static void OnExport ()
39013850
{
39023851
GameObject [] selectedGOs = Selection.GetFiltered<GameObject> (SelectionMode.TopLevel);

0 commit comments

Comments
 (0)