Skip to content

Commit 936407f

Browse files
committed
Drop obsolete members after release v0.14
1 parent 72585f5 commit 936407f

File tree

4 files changed

+0
-96
lines changed

4 files changed

+0
-96
lines changed

LibGit2Sharp/BlobExtensions.cs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,5 @@ public static string ContentAsText(this Blob blob, Encoding encoding = null)
2727
return reader.ReadToEnd();
2828
}
2929
}
30-
31-
/// <summary>
32-
/// Gets the blob content decoded as UTF-8.
33-
/// </summary>
34-
/// <param name="blob">The blob for which the content will be returned.</param>
35-
/// <returns>Blob content as UTF-8</returns>
36-
[Obsolete("This method will be removed in the next release. Please use ContentAsText()")]
37-
public static string ContentAsUtf8(this Blob blob)
38-
{
39-
Ensure.ArgumentNotNull(blob, "blob");
40-
41-
return blob.ContentAsText(Encoding.UTF8);
42-
}
43-
44-
/// <summary>
45-
/// Gets the blob content decoded as Unicode.
46-
/// </summary>
47-
/// <param name="blob">The blob for which the content will be returned.</param>
48-
/// <returns>Blob content as unicode.</returns>
49-
[Obsolete("This method will be removed in the next release. Please use ContentAsText()")]
50-
public static string ContentAsUnicode(this Blob blob)
51-
{
52-
Ensure.ArgumentNotNull(blob, "blob");
53-
54-
return blob.ContentAsText(Encoding.Unicode);
55-
}
5630
}
5731
}

LibGit2Sharp/IRepository.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -111,20 +111,6 @@ public interface IRepository : IDisposable
111111
/// <returns>The <see cref="Branch"/> that was checked out.</returns>
112112
Branch Checkout(Commit commit, CheckoutModifiers checkoutModifiers, CheckoutProgressHandler onCheckoutProgress, CheckoutNotificationOptions checkoutNotificationOptions);
113113

114-
/// <summary>
115-
/// Checkout files from the specified branch, reference or SHA.
116-
/// <para>
117-
/// This method does not switch branches or update the current repository HEAD.
118-
/// </para>
119-
/// </summary>
120-
/// <param name="committishOrBranchSpec">A revparse spec for the commit or branch to checkout paths from.</param>
121-
/// <param name="paths">The paths to checkout.</param>
122-
/// <param name="checkoutOptions">Options controlling checkout behavior.</param>
123-
/// <param name="onCheckoutProgress">Callback method to report checkout progress updates through.</param>
124-
/// <param name="checkoutNotificationOptions"><see cref="CheckoutNotificationOptions"/> to manage checkout notifications.</param>
125-
[Obsolete("This method will be removed in the next release. Please use CheckoutPaths(string, IEnumerable<string>, CheckoutOptions) instead.")]
126-
void CheckoutPaths(string committishOrBranchSpec, IList<string> paths, CheckoutModifiers checkoutOptions, CheckoutProgressHandler onCheckoutProgress, CheckoutNotificationOptions checkoutNotificationOptions);
127-
128114
/// <summary>
129115
/// Updates specifed paths in the index and working directory with the versions from the specified branch, reference, or SHA.
130116
/// <para>

LibGit2Sharp/ReferenceCollection.cs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -334,38 +334,6 @@ public virtual ReflogCollection Log(Reference reference)
334334
return new ReflogCollection(repo, reference.CanonicalName);
335335
}
336336

337-
/// <summary>
338-
/// Rewrite some of the commits in the repository and all the references that can reach them.
339-
/// </summary>
340-
/// <param name="commitsToRewrite">The <see cref="Commit"/> objects to rewrite.</param>
341-
/// <param name="commitHeaderRewriter">Visitor for rewriting commit metadata.</param>
342-
/// <param name="commitTreeRewriter">Visitor for rewriting commit trees.</param>
343-
/// <param name="tagNameRewriter">Visitor for renaming tags. This is called with (OldTag.Name, OldTag.IsAnnotated, OldTarget).</param>
344-
/// <param name="commitParentsRewriter">Visitor for mangling parent links.</param>
345-
/// <param name="backupRefsNamespace">Namespace where to store the rewritten references (defaults to "refs/original/")</param>
346-
[Obsolete("This method will be removed in the next release. Please use overload with RewriteHistoryOptions.")]
347-
public virtual void RewriteHistory(
348-
IEnumerable<Commit> commitsToRewrite,
349-
Func<Commit, CommitRewriteInfo> commitHeaderRewriter = null,
350-
Func<Commit, TreeDefinition> commitTreeRewriter = null,
351-
Func<String, bool, GitObject, string> tagNameRewriter = null,
352-
Func<IEnumerable<Commit>, IEnumerable<Commit>> commitParentsRewriter = null,
353-
string backupRefsNamespace = "refs/original/")
354-
{
355-
RewriteHistory(new RewriteHistoryOptions
356-
{
357-
BackupRefsNamespace = backupRefsNamespace,
358-
CommitHeaderRewriter = commitHeaderRewriter,
359-
CommitParentsRewriter = commitParentsRewriter == null
360-
? default(Func<Commit, IEnumerable<Commit>>)
361-
: (c => commitParentsRewriter(c.Parents)),
362-
CommitTreeRewriter = commitTreeRewriter,
363-
TagNameRewriter = tagNameRewriter == null
364-
? default(Func<string, bool, string, string>)
365-
: (n, a, t) => tagNameRewriter(n, a, repo.Lookup(t)),
366-
}, commitsToRewrite);
367-
}
368-
369337
/// <summary>
370338
/// Rewrite some of the commits in the repository and all the references that can reach them.
371339
/// </summary>

LibGit2Sharp/Repository.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -807,30 +807,6 @@ public void Reset(ResetOptions resetOptions, Commit commit)
807807
Refs.Log(Refs.Head).Append(commit.Id, string.Format("reset: moving to {0}", commit.Sha));
808808
}
809809

810-
/// <summary>
811-
/// Updates specifed paths in the index and working directory with the versions from the specified branch, reference, or SHA.
812-
/// <para>
813-
/// This method does not switch branches or update the current repository HEAD.
814-
/// </para>
815-
/// </summary>
816-
/// <param name="committishOrBranchSpec">A revparse spec for the commit or branch to checkout paths from.</param>
817-
/// <param name="paths">The paths to checkout.</param>
818-
/// <param name="checkoutOptions">Options controlling checkout behavior.</param>
819-
/// <param name="onCheckoutProgress">Callback method to report checkout progress updates through.</param>
820-
/// <param name="checkoutNotificationOptions"><see cref="CheckoutNotificationOptions"/> to manage checkout notifications.</param>
821-
[Obsolete("This method will be removed in the next release. Please use CheckoutPaths(string, IEnumerable<string>, CheckoutOptions) instead.")]
822-
public void CheckoutPaths(string committishOrBranchSpec, IList<string> paths, CheckoutModifiers checkoutOptions, CheckoutProgressHandler onCheckoutProgress, CheckoutNotificationOptions checkoutNotificationOptions)
823-
{
824-
var opts = new CheckoutOptions
825-
{
826-
CheckoutModifiers = checkoutOptions,
827-
OnCheckoutProgress = onCheckoutProgress,
828-
CheckoutNotificationOptions = checkoutNotificationOptions
829-
};
830-
831-
CheckoutPaths(committishOrBranchSpec, paths, opts);
832-
}
833-
834810
/// <summary>
835811
/// Updates specifed paths in the index and working directory with the versions from the specified branch, reference, or SHA.
836812
/// <para>

0 commit comments

Comments
 (0)