diff options
author | nulltoken <emeric.fermas@gmail.com> | 2013-09-10 01:40:46 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-09-10 01:41:44 +0400 |
commit | 936407f5a04983c85c02c563afe931de35328c69 (patch) | |
tree | c83c73d7a46405a57fbf9921326a62916018ec5c /LibGit2Sharp | |
parent | 72585f5e4ef134e00d6d5bcbd19870574026b893 (diff) |
Drop obsolete members after release v0.14
Diffstat (limited to 'LibGit2Sharp')
-rw-r--r-- | LibGit2Sharp/BlobExtensions.cs | 26 | ||||
-rw-r--r-- | LibGit2Sharp/IRepository.cs | 14 | ||||
-rw-r--r-- | LibGit2Sharp/ReferenceCollection.cs | 32 | ||||
-rw-r--r-- | LibGit2Sharp/Repository.cs | 24 |
4 files changed, 0 insertions, 96 deletions
diff --git a/LibGit2Sharp/BlobExtensions.cs b/LibGit2Sharp/BlobExtensions.cs index 4d673ff0..a00208ec 100644 --- a/LibGit2Sharp/BlobExtensions.cs +++ b/LibGit2Sharp/BlobExtensions.cs @@ -27,31 +27,5 @@ namespace LibGit2Sharp return reader.ReadToEnd(); } } - - /// <summary> - /// Gets the blob content decoded as UTF-8. - /// </summary> - /// <param name="blob">The blob for which the content will be returned.</param> - /// <returns>Blob content as UTF-8</returns> - [Obsolete("This method will be removed in the next release. Please use ContentAsText()")] - public static string ContentAsUtf8(this Blob blob) - { - Ensure.ArgumentNotNull(blob, "blob"); - - return blob.ContentAsText(Encoding.UTF8); - } - - /// <summary> - /// Gets the blob content decoded as Unicode. - /// </summary> - /// <param name="blob">The blob for which the content will be returned.</param> - /// <returns>Blob content as unicode.</returns> - [Obsolete("This method will be removed in the next release. Please use ContentAsText()")] - public static string ContentAsUnicode(this Blob blob) - { - Ensure.ArgumentNotNull(blob, "blob"); - - return blob.ContentAsText(Encoding.Unicode); - } } } diff --git a/LibGit2Sharp/IRepository.cs b/LibGit2Sharp/IRepository.cs index cb617a13..763b7bbf 100644 --- a/LibGit2Sharp/IRepository.cs +++ b/LibGit2Sharp/IRepository.cs @@ -112,20 +112,6 @@ namespace LibGit2Sharp Branch Checkout(Commit commit, CheckoutModifiers checkoutModifiers, CheckoutProgressHandler onCheckoutProgress, CheckoutNotificationOptions checkoutNotificationOptions); /// <summary> - /// Checkout files from the specified branch, reference or SHA. - /// <para> - /// This method does not switch branches or update the current repository HEAD. - /// </para> - /// </summary> - /// <param name="committishOrBranchSpec">A revparse spec for the commit or branch to checkout paths from.</param> - /// <param name="paths">The paths to checkout.</param> - /// <param name="checkoutOptions">Options controlling checkout behavior.</param> - /// <param name="onCheckoutProgress">Callback method to report checkout progress updates through.</param> - /// <param name="checkoutNotificationOptions"><see cref="CheckoutNotificationOptions"/> to manage checkout notifications.</param> - [Obsolete("This method will be removed in the next release. Please use CheckoutPaths(string, IEnumerable<string>, CheckoutOptions) instead.")] - void CheckoutPaths(string committishOrBranchSpec, IList<string> paths, CheckoutModifiers checkoutOptions, CheckoutProgressHandler onCheckoutProgress, CheckoutNotificationOptions checkoutNotificationOptions); - - /// <summary> /// Updates specifed paths in the index and working directory with the versions from the specified branch, reference, or SHA. /// <para> /// This method does not switch branches or update the current repository HEAD. diff --git a/LibGit2Sharp/ReferenceCollection.cs b/LibGit2Sharp/ReferenceCollection.cs index 8103d235..edd041a5 100644 --- a/LibGit2Sharp/ReferenceCollection.cs +++ b/LibGit2Sharp/ReferenceCollection.cs @@ -337,38 +337,6 @@ namespace LibGit2Sharp /// <summary> /// Rewrite some of the commits in the repository and all the references that can reach them. /// </summary> - /// <param name="commitsToRewrite">The <see cref="Commit"/> objects to rewrite.</param> - /// <param name="commitHeaderRewriter">Visitor for rewriting commit metadata.</param> - /// <param name="commitTreeRewriter">Visitor for rewriting commit trees.</param> - /// <param name="tagNameRewriter">Visitor for renaming tags. This is called with (OldTag.Name, OldTag.IsAnnotated, OldTarget).</param> - /// <param name="commitParentsRewriter">Visitor for mangling parent links.</param> - /// <param name="backupRefsNamespace">Namespace where to store the rewritten references (defaults to "refs/original/")</param> - [Obsolete("This method will be removed in the next release. Please use overload with RewriteHistoryOptions.")] - public virtual void RewriteHistory( - IEnumerable<Commit> commitsToRewrite, - Func<Commit, CommitRewriteInfo> commitHeaderRewriter = null, - Func<Commit, TreeDefinition> commitTreeRewriter = null, - Func<String, bool, GitObject, string> tagNameRewriter = null, - Func<IEnumerable<Commit>, IEnumerable<Commit>> commitParentsRewriter = null, - string backupRefsNamespace = "refs/original/") - { - RewriteHistory(new RewriteHistoryOptions - { - BackupRefsNamespace = backupRefsNamespace, - CommitHeaderRewriter = commitHeaderRewriter, - CommitParentsRewriter = commitParentsRewriter == null - ? default(Func<Commit, IEnumerable<Commit>>) - : (c => commitParentsRewriter(c.Parents)), - CommitTreeRewriter = commitTreeRewriter, - TagNameRewriter = tagNameRewriter == null - ? default(Func<string, bool, string, string>) - : (n, a, t) => tagNameRewriter(n, a, repo.Lookup(t)), - }, commitsToRewrite); - } - - /// <summary> - /// Rewrite some of the commits in the repository and all the references that can reach them. - /// </summary> /// <param name="options">Specifies behavior for this rewrite.</param> /// <param name="commitsToRewrite">The <see cref="Commit"/> objects to rewrite.</param> public virtual void RewriteHistory(RewriteHistoryOptions options, params Commit[] commitsToRewrite) diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs index d860e23b..3ec3def4 100644 --- a/LibGit2Sharp/Repository.cs +++ b/LibGit2Sharp/Repository.cs @@ -813,30 +813,6 @@ namespace LibGit2Sharp /// This method does not switch branches or update the current repository HEAD. /// </para> /// </summary> - /// <param name="committishOrBranchSpec">A revparse spec for the commit or branch to checkout paths from.</param> - /// <param name="paths">The paths to checkout.</param> - /// <param name="checkoutOptions">Options controlling checkout behavior.</param> - /// <param name="onCheckoutProgress">Callback method to report checkout progress updates through.</param> - /// <param name="checkoutNotificationOptions"><see cref="CheckoutNotificationOptions"/> to manage checkout notifications.</param> - [Obsolete("This method will be removed in the next release. Please use CheckoutPaths(string, IEnumerable<string>, CheckoutOptions) instead.")] - public void CheckoutPaths(string committishOrBranchSpec, IList<string> paths, CheckoutModifiers checkoutOptions, CheckoutProgressHandler onCheckoutProgress, CheckoutNotificationOptions checkoutNotificationOptions) - { - var opts = new CheckoutOptions - { - CheckoutModifiers = checkoutOptions, - OnCheckoutProgress = onCheckoutProgress, - CheckoutNotificationOptions = checkoutNotificationOptions - }; - - CheckoutPaths(committishOrBranchSpec, paths, opts); - } - - /// <summary> - /// Updates specifed paths in the index and working directory with the versions from the specified branch, reference, or SHA. - /// <para> - /// This method does not switch branches or update the current repository HEAD. - /// </para> - /// </summary> /// <param name = "committishOrBranchSpec">A revparse spec for the commit or branch to checkout paths from.</param> /// <param name="paths">The paths to checkout. Will throw if null is passed in. Passing an empty enumeration results in nothing being checked out.</param> /// <param name="checkoutOptions">Collection of parameters controlling checkout behavior.</param> |