Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 925279f

Browse files
committed
Remove obsolete RefreshCloneUrl API
This is no longer called by TeamExplorerServiceHolder.
1 parent eb7f1db commit 925279f

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

src/GitHub.App/SampleData/GitServiceDesigner.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class GitServiceDesigner : IGitService
1010
{
1111
public ILocalRepositoryModel CreateLocalRepositoryModel(string localPath) => null;
1212
public IBranch CreateCurrentBranchModel(ILocalRepositoryModel model) => null;
13-
public void RefreshCloneUrl(ILocalRepositoryModel localRepositoryModel) { }
1413
public Task<string> GetLatestPushedSha(string path, string remote = "origin") => Task.FromResult<string>(null);
1514
public UriString GetRemoteUri(IRepository repo, string remote = "origin") => null;
1615
public IRepository GetRepository(string path) => null;

src/GitHub.Exports/Services/GitService.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,6 @@ public IBranch CreateCurrentBranchModel(ILocalRepositoryModel model)
6868
}
6969
}
7070

71-
/// <summary>
72-
/// Updates the CloneUrl from the "origin" remote.
73-
/// </summary>
74-
public void RefreshCloneUrl(ILocalRepositoryModel localRepositoryModel)
75-
{
76-
var localPath = localRepositoryModel.LocalPath;
77-
if (localPath == null)
78-
return;
79-
80-
localRepositoryModel.CloneUrl = GetUri(localPath);
81-
}
82-
8371
/// <summary>
8472
/// Returns the URL of the remote for the specified <see cref="repository"/>. If the repository
8573
/// is null or no remote named origin exists, this method returns null

src/GitHub.Exports/Services/IGitService.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ public interface IGitService
2121
/// <returns>A new branch model.</returns>
2222
IBranch CreateCurrentBranchModel(ILocalRepositoryModel model);
2323

24-
/// <summary>
25-
/// Updates the CloneUrl information based on the "origin" remote.
26-
/// </summary>
27-
/// <param name="localRepositoryModel">The repository model to refresh.</param>
28-
void RefreshCloneUrl(ILocalRepositoryModel localRepositoryModel);
29-
3024
/// <summary>
3125
/// Returns the URL of the remote for the specified <see cref="repository"/>. If the repository
3226
/// is null or no remote exists, this method returns null

test/GitHub.TeamFoundation.UnitTests/VSGitExtTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,5 @@ public ILocalRepositoryModel CreateLocalRepositoryModel(string localPath)
317317
public IRepository GetRepository(string path) => throw new NotImplementedException();
318318
public UriString GetUri(IRepository repository, string remote = "origin") => throw new NotImplementedException();
319319
public UriString GetUri(string path, string remote = "origin") => throw new NotImplementedException();
320-
public void RefreshCloneUrl(ILocalRepositoryModel localRepositoryModel) => throw new NotImplementedException();
321320
}
322321
}

0 commit comments

Comments
 (0)