Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2013-12-24 13:13:04 +0400
committernulltoken <emeric.fermas@gmail.com>2013-12-24 13:13:04 +0400
commit2ff661ac2ff4fe9d0b6c68e3acb5942cfa50130a (patch)
tree7bf48ecb05572999684a63086c02b2f53c1f5390 /LibGit2Sharp/ObjectId.cs
parentd71ccce9032209719b8dc6d2f8e486c4e9c3813e (diff)
Drop obsolete members after release v0.15.0
Diffstat (limited to 'LibGit2Sharp/ObjectId.cs')
-rw-r--r--LibGit2Sharp/ObjectId.cs48
1 files changed, 0 insertions, 48 deletions
diff --git a/LibGit2Sharp/ObjectId.cs b/LibGit2Sharp/ObjectId.cs
index 00454347..0d7b845d 100644
--- a/LibGit2Sharp/ObjectId.cs
+++ b/LibGit2Sharp/ObjectId.cs
@@ -306,54 +306,6 @@ namespace LibGit2Sharp
}
/// <summary>
- /// Determine whether the beginning of this instance matches the
- /// <paramref name="len"/> first nibbles of <paramref name="rawId"/>.
- /// </summary>
- /// <param name="rawId">The byte array to compare the <see cref="ObjectId"/> against.</param>
- /// <param name="len">The number of nibbles from <paramref name="rawId"/> </param>
- /// <returns></returns>
- [Obsolete("This method will be removed in the next release. Please use one of the StartsWith(string) overload instead.")]
- public bool StartsWith(byte[] rawId, int len)
- {
- Ensure.ArgumentNotNull(rawId, "rawId");
-
- if (len < 1 || len > HexSize)
- {
- throw new ArgumentOutOfRangeException("len");
- }
-
- if (len > rawId.Length * 2)
- {
- throw new ArgumentOutOfRangeException("len", "len exceeds the size of rawId");
- }
-
- bool match = true;
-
- int length = len >> 1;
- for (int i = 0; i < length; i++)
- {
- if (RawId[i] != rawId[i])
- {
- match = false;
- break;
- }
- }
-
- if (match && ((len & 1) == 1))
- {
- var a = RawId[length] >> 4;
- var b = rawId[length] >> 4;
-
- if (a != b)
- {
- match = false;
- }
- }
-
- return match;
- }
-
- /// <summary>
/// Determine whether <paramref name="shortSha"/> matches the hexified
/// representation of the first nibbles of this instance.
/// <para>