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

Commit 5e62858

Browse files
committed
Drop unused parameter
1 parent 0e55dad commit 5e62858

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

LibGit2Sharp/Core/Proxy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -788,9 +788,9 @@ public static Conflict git_index_conflict_get(
788788
Ensure.ZeroResult(res);
789789

790790
return new Conflict(
791-
IndexEntry.BuildFromPtr(repo, ancestor),
792-
IndexEntry.BuildFromPtr(repo, ours),
793-
IndexEntry.BuildFromPtr(repo, theirs));
791+
IndexEntry.BuildFromPtr(ancestor),
792+
IndexEntry.BuildFromPtr(ours),
793+
IndexEntry.BuildFromPtr(theirs));
794794
}
795795

796796
public static int git_index_entrycount(IndexSafeHandle index)

LibGit2Sharp/Index.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public virtual IndexEntry this[string path]
8080
Ensure.ArgumentNotNullOrEmptyString(path, "path");
8181

8282
IndexEntrySafeHandle entryHandle = Proxy.git_index_get_bypath(handle, path, 0);
83-
return IndexEntry.BuildFromPtr(repo, entryHandle);
83+
return IndexEntry.BuildFromPtr(entryHandle);
8484
}
8585
}
8686

@@ -89,7 +89,7 @@ private IndexEntry this[int index]
8989
get
9090
{
9191
IndexEntrySafeHandle entryHandle = Proxy.git_index_get_byindex(handle, (UIntPtr)index);
92-
return IndexEntry.BuildFromPtr(repo, entryHandle);
92+
return IndexEntry.BuildFromPtr(entryHandle);
9393
}
9494
}
9595

LibGit2Sharp/IndexEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class IndexEntry : IEquatable<IndexEntry>
3535
/// </summary>
3636
public virtual ObjectId Id { get; private set; }
3737

38-
internal static IndexEntry BuildFromPtr(Repository repo, IndexEntrySafeHandle handle)
38+
internal static IndexEntry BuildFromPtr(IndexEntrySafeHandle handle)
3939
{
4040
if (handle == null || handle.IsZero)
4141
{

0 commit comments

Comments
 (0)