8000 Remove redundant qualifiers · mm201/libgit2sharp@e3fca98 · GitHub
[go: up one dir, main page]

Skip to content

Commit e3fca98

Browse files
dahlbyknulltoken
authored andcommitted
Remove redundant qualifiers
1 parent 03c8397 commit e3fca98

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

LibGit2Sharp.Tests/OdbBackendFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public override int ReadStream(byte[] oid, out OdbBackendStream stream)
184184
throw new NotImplementedException();
185185
}
186186

187-
public override int ForEach(OdbBackend.ForEachCallback callback)
187+
public override int ForEach(ForEachCallback callback)
188188
{
189189
throw new NotImplementedException();
190190
}

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ private sealed class LibraryLifetimeObject : CriticalFinalizerObject
2626
// Ensure mono can JIT the .cctor and adjust the PATH before trying to load the native library.
2727
// See https://github.com/libgit2/libgit2sharp/pull/190
2828
[MethodImpl(MethodImplOptions.NoInlining)]
29-
public LibraryLifetimeObject() { Ensure.ZeroResult(NativeMethods.git_threads_init()); }
30-
~LibraryLifetimeObject() { NativeMethods.git_threads_shutdown(); }
29+
public LibraryLifetimeObject() { Ensure.ZeroResult(git_threads_init()); }
30+
~LibraryLifetimeObject() { git_threads_shutdown(); }
3131
}
3232

3333
static NativeMethods()

LibGit2Sharp/Core/Utf8Marshaler.cs

Lines changed: 2 additions & 2 deletions
E7BF
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ public IntPtr MarshalManagedToNative(Object managedObj)
8787
throw new MarshalDirectiveException("Utf8Marshaler must be used on a string.");
8888
}
8989

90-
return Utf8Marshaler.FromManaged(str);
90+
return FromManaged(str);
9191
}
9292

9393
public Object MarshalNativeToManaged(IntPtr pNativeData)
9494
{
95-
return Utf8Marshaler.FromNative(pNativeData);
95+
return FromNative(pNativeData);
9696
}
9797

9898
#endregion

LibGit2Sharp/TagAnnotation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ internal TagAnnotation(Repository repo, ObjectId id)
2424
{
2525
lazyName = GitObjectLazyGroup.Singleton(repo, id, Proxy.git_tag_name);
2626
lazyTarget = GitObjectLazyGroup.Singleton(repo, id,
27-
obj => GitObject.BuildFrom(repo, Proxy.git_tag_target_oid(obj), Proxy.git_tag_target_type(obj), null));
27+
obj => BuildFrom(repo, Proxy.git_tag_target_oid(obj), Proxy.git_tag_target_type(obj), null));
2828

2929
group = new GitObjectLazyGroup(repo, id);
3030
lazyTagger = group.AddLazy(Proxy.git_tag_tagger);

0 commit comments

Comments
 (0)
0