Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 9234d39

Browse files
Removing FullPath
1 parent 598c96e commit 9234d39

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/GitHub.Api/Git/TreeData.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ namespace GitHub.Unity
44
{
55
public interface ITreeData
66
{
7-
string FullPath { get; }
87
string Path { get; }
98
bool IsActive { get; }
109
}
@@ -21,7 +20,6 @@ public GitBranchTreeData(GitBranch gitBranch)
2120
GitBranch = gitBranch;
2221
}
2322

24-
public string FullPath => GitBranch.Name;
2523
public string Path => GitBranch.Name;
2624
public bool IsActive => GitBranch.IsActive;
2725
}

src/GitHub.Api/UI/TreeLoader.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace GitHub.Unity
66
{
77
public interface ITree
88
{
9-
void AddNode(string fullPath, string path, string label, int level, bool isFolder, bool isActive, bool isHidden, bool isCollapsed);
9+
void AddNode(string path, string label, int level, bool isFolder, bool isActive, bool isHidden, bool isCollapsed);
1010
void Clear();
1111
HashSet<string> GetCollapsedFolders();
1212
string Title { get; }
@@ -25,7 +25,7 @@ public static void Load(ITree tree, IEnumerable<ITreeData> treeDatas)
2525

2626
var displayRootLevel = tree.DisplayRootNode ? 1 : 0;
2727

28-
tree.AddNode(fullPath: tree.Title, path: tree.Title, label: tree.Title, level: -1 + displayRootLevel, isFolder: true, isActive: false, isHidden: false, isCollapsed: false);
28+
tree.AddNode(path: tree.Title, label: tree.Title, level: -1 + displayRootLevel, isFolder: true, isActive: false, isHidden: false, isCollapsed: false);
2929

3030
var hideChildren = false;
3131
var hideChildrenBelowLevel = 0;
@@ -75,7 +75,7 @@ public static void Load(ITree tree, IEnumerable<ITreeData> treeDatas)
7575

7676
}
7777

78-
tree.AddNode(fullPath: treeData.FullPath, path: nodePath, label: label, level: i + displayRootLevel, isFolder: isFolder, isActive: treeData.IsActive, isHidden: nodeIsHidden, isCollapsed: nodeIsCollapsed);
78+
tree.AddNode(path: nodePath, label: label, level: i + displayRootLevel, isFolder: isFolder, isActive: treeData.IsActive, isHidden: nodeIsHidden, isCollapsed: nodeIsCollapsed);
7979
}
8080
}
8181
}

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,10 @@ public string PathSeparator
7777
set { pathSeparator = value; }
7878
}
7979

80-
public void AddNode(string fullPath, string path, string label, int level, bool isFolder, bool isActive, bool isHidden, bool isCollapsed)
80+
public void AddNode(string path, string label, int level, bool isFolder, bool isActive, bool isHidden, bool isCollapsed)
8181
{
8282
var node = new TreeNode
8383
{
84-
FullPath = fullPath,
8584
Path = path,
8685
Label = label,
8786
Level = level,
@@ -409,7 +408,6 @@ protected void LoadNodeIcons()
409408
[Serializable]
410409
public class TreeNode
411410
{
412-
public string FullPath;
413411
public string Path;
414412
public string Label;
415413
public int Level;

0 commit comments

Comments
 (0)