mirror of
https://github.com/yasirkula/UnityAssetUsageDetector.git
synced 2026-11-19 14:32:37 +08:00
Removed an unused variable
This commit is contained in:
@@ -881,7 +881,7 @@ namespace AssetUsageDetectorNamespace
|
||||
if( shouldUpdateInitialTreeViewNodeId )
|
||||
treeViewState.initialNodeId = searchResult.nextTreeViewId;
|
||||
|
||||
treeView = new SearchResultTreeView( treeViewState, references, ( Type == GroupType.UnusedObjects ) ? SearchResultTreeView.TreeType.UnusedObjects : SearchResultTreeView.TreeType.Normal, searchResult != null ? searchResult.UsedObjects : null, searchResult != null && searchResult.SearchParameters.hideDuplicateRows, searchResult != null && searchResult.SearchParameters.hideReduntantPrefabVariantLinks, true );
|
||||
treeView = new SearchResultTreeView( treeViewState, references, ( Type == GroupType.UnusedObjects ) ? SearchResultTreeView.TreeType.UnusedObjects : SearchResultTreeView.TreeType.Normal, searchResult != null ? searchResult.UsedObjects : null, searchResult != null && searchResult.SearchParameters.hideDuplicateRows, true );
|
||||
|
||||
if( isFirstInitialization )
|
||||
{
|
||||
|
||||
@@ -124,7 +124,6 @@ namespace AssetUsageDetectorNamespace
|
||||
|
||||
private readonly TreeType treeType;
|
||||
private readonly bool hideDuplicateRows;
|
||||
private readonly bool hideReduntantPrefabVariantLinks;
|
||||
|
||||
private bool isSearching;
|
||||
|
||||
@@ -164,13 +163,12 @@ namespace AssetUsageDetectorNamespace
|
||||
[System.Obsolete] private new string searchString { get; }
|
||||
[System.Obsolete] private new bool hasSearch { get; }
|
||||
|
||||
public SearchResultTreeView( SearchResultTreeViewState state, List<ReferenceNode> references, TreeType treeType, HashSet<Object> usedObjectsSet, bool hideDuplicateRows, bool hideReduntantPrefabVariantLinks, bool usesExternalScrollView ) : base( state )
|
||||
public SearchResultTreeView( SearchResultTreeViewState state, List<ReferenceNode> references, TreeType treeType, HashSet<Object> usedObjectsSet, bool hideDuplicateRows, bool usesExternalScrollView ) : base( state )
|
||||
{
|
||||
this.state = state;
|
||||
this.references = references;
|
||||
this.treeType = treeType;
|
||||
this.hideDuplicateRows = hideDuplicateRows;
|
||||
this.hideReduntantPrefabVariantLinks = hideReduntantPrefabVariantLinks;
|
||||
|
||||
highlightedSearchTextColor = "<color=#" + ColorUtility.ToHtmlStringRGBA( AssetUsageDetectorSettings.SearchMatchingTextColor ) + ">";
|
||||
|
||||
@@ -1158,7 +1156,7 @@ namespace AssetUsageDetectorNamespace
|
||||
|
||||
if( selectedNodes.Count > 0 )
|
||||
{
|
||||
SearchResultTreeView isolatedTreeView = new SearchResultTreeView( new SearchResultTreeViewState(), selectedNodes, TreeType.IsolatedView, null, hideDuplicateRows, hideReduntantPrefabVariantLinks, false );
|
||||
SearchResultTreeView isolatedTreeView = new SearchResultTreeView( new SearchResultTreeViewState(), selectedNodes, TreeType.IsolatedView, null, hideDuplicateRows, false );
|
||||
isolatedTreeView.ExpandMainReferences();
|
||||
|
||||
SearchResultTreeViewIsolatedView.Show( new Vector2( EditorWindow.focusedWindow.position.width, Mathf.Max( isolatedTreeView.totalHeight, EditorGUIUtility.singleLineHeight * 5f ) + 1f ), isolatedTreeView, new GUIContent( selectedNodes[0].Label + ( selectedNodes.Count <= 1 ? "" : ( " (and " + ( selectedNodes.Count - 1 ) + " more)" ) ) ) );
|
||||
|
||||
Reference in New Issue
Block a user