8000 Remove unused Proxy.git_reference_resolve() · philhack/libgit2sharp@31bd507 · GitHub
[go: up one dir, main page]

Skip to content

Commit 31bd507

Browse files
committed
Remove unused Proxy.git_reference_resolve()
1 parent d1b00f7 commit 31bd507

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -698,9 +698,6 @@ internal static extern int git_reference_rename(
698698
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = UniqueId.UniqueIdentifier, MarshalTypeRef = typeof(Utf8Marshaler))] string newName,
699699
[MarshalAs(UnmanagedType.Bool)] bool force);
700700

701-
[DllImport(libgit2)]
702-
internal static extern int git_reference_resolve(out ReferenceSafeHandle resolvedReference, ReferenceSafeHandle reference);
703-
704701
[DllImport(libgit2)]
705702
internal static extern int git_reference_set_target(out ReferenceSafeHandle ref_out, ReferenceSafeHandle reference, ref GitOid id);
706703

LibGit2Sharp/Core/Proxy.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections;
32
using System.Collections.Generic;
43
using System.Globalization;
54
using System.IO;
@@ -1240,24 +1239,6 @@ public static ReferenceSafeHandle git_reference_rename(ReferenceSafeHandle refer
12401239
}
12411240
}
12421241

1243-
public static ReferenceSafeHandle git_reference_resolve(ReferenceSafeHandle reference)
1244-
{
1245-
using (ThreadAffinity())
1246-
{
1247-
ReferenceSafeHandle resolvedHandle;
1248-
int res = NativeMethods.git_reference_resolve(out resolvedHandle, reference);
1249-
1250-
if (res == (int)GitErrorCode.NotFound)
1251-
{
1252-
return null;
1253-
} 71CA
1254-
1255-
Ensure.ZeroResult(res);
1256-
1257-
return resolvedHandle;
1258-
}
1259-
}
1260-
12611242
public static ReferenceSafeHandle git_reference_set_target(ReferenceSafeHandle reference, ObjectId id)
12621243
{
12631244
using (ThreadAffinity())

0 commit comments

Comments
 (0)
0