Skip to content

Commit 6171f94

Browse files
committed
Removed more unused code
1 parent 7c34c52 commit 6171f94

File tree

3 files changed

+0
-83
lines changed

3 files changed

+0
-83
lines changed

GitVersionCore.Tests/GitVersionCore.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
<Compile Include="Helpers\Constants.cs" />
9696
<Compile Include="InformationalVersionBuilderTests.cs" />
9797
<Compile Include="JsonVersionBuilderTests.cs" />
98-
<Compile Include="LibGitExtensionsTests.cs" />
9998
<Compile Include="MergeMessageParserTests.cs" />
10099
<Compile Include="Mocks\MockBranch.cs" />
101100
<Compile Include="Mocks\MockBranchCollection.cs" />

GitVersionCore.Tests/LibGitExtensionsTests.cs

Lines changed: 0 additions & 50 deletions
This file was deleted.

GitVersionCore/LibGitExtensions.cs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -69,38 +69,6 @@ public static IEnumerable<Branch> GetBranchesContainingCommit(this Commit commit
6969
}
7070
}
7171

72-
public static IEnumerable<Tag> TagsByDate(this IRepository repository, Commit commit)
73-
{
74-
return repository.Tags
75-
.Where(tag => tag.PeeledTarget() == commit)
76-
.OrderByDescending(tag =>
77-
{
78-
if (tag.Annotation != null)
79-
{
80-
return tag.Annotation.Tagger.When;
81-
}
82-
//lightweight tags will not have an Annotation
83-
return commit.Committer.When;
84-
});
85-
}
86-
87-
public static IEnumerable<Tag> SemVerTagsRelatedToVersion(this IRepository repository, EffectiveConfiguration configuration, SemanticVersion version)
88-
{
89-
foreach (var tag in repository.Tags)
90-
{
91-
SemanticVersion tagVersion;
92-
if (SemanticVersion.TryParse(tag.Name, configuration.GitTagPrefix, out tagVersion))
93-
{
94-
if (version.Major == tagVersion.Major &&
95-
version.Minor == tagVersion.Minor &&
96-
version.Patch == tagVersion.Patch)
97-
{
98-
yield return tag;
99-
}
100-
}
101-
}
102-
}
103-
10472
public static GitObject PeeledTarget(this Tag tag)
10573
{
10674
var target = tag.Target;

0 commit comments

Comments
 (0)