Skip to content

Commit

Permalink
(maint) Removed unused platfrom detection code
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm committed Jan 9, 2020
1 parent 9ccfd00 commit 8f63a8e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions Source/Cake.Codecov.Tests/CodecovRunnerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public void Should_Find_Codecov_Runner_If_Tool_Path_Not_Provided_On_Windows()
var mock = new Mock<IPlatformDetector>(MockBehavior.Strict);
mock.Setup(m => m.IsLinuxPlatform()).Returns(false);
mock.Setup(m => m.IsOsxPlatform()).Returns(false);
mock.Setup(m => m.IsWindowsPlatform()).Returns(true);

var fixture = new CodecovRunnerFixture(mock.Object, "codecov.exe");

Expand All @@ -115,7 +114,6 @@ public void Should_Find_Codecov_Runner_If_Tool_Path_Not_Provided_On_Linux(string
var mock = new Mock<IPlatformDetector>(MockBehavior.Strict);
mock.Setup(m => m.IsLinuxPlatform()).Returns(true);
mock.Setup(m => m.IsOsxPlatform()).Returns(false);
mock.Setup(m => m.IsWindowsPlatform()).Returns(false);

var fixture = new CodecovRunnerFixture(mock.Object, path);

Expand All @@ -138,7 +136,6 @@ public void Should_Find_Codecov_Runner_If_Tool_Path_Not_Provided_On_osx(string p
var mock = new Mock<IPlatformDetector>(MockBehavior.Strict);
mock.Setup(m => m.IsLinuxPlatform()).Returns(false);
mock.Setup(m => m.IsOsxPlatform()).Returns(true);
mock.Setup(m => m.IsWindowsPlatform()).Returns(false);

var fixture = new CodecovRunnerFixture(mock.Object, path);

Expand Down
6 changes: 0 additions & 6 deletions Source/Cake.Codecov/Internals/IPlatformDetector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,5 @@ public interface IPlatformDetector
/// </summary>
/// <returns><c>true</c> if we are running on osx; otherwise, <c>false</c>.</returns>
bool IsOsxPlatform();

/// <summary>
/// Determines whether we are running on the windows platform.
/// </summary>
/// <returns><c>true</c> if we are running on windows; otherwise, <c>false</c>.</returns>
bool IsWindowsPlatform();
}
}
5 changes: 0 additions & 5 deletions Source/Cake.Codecov/Internals/PlatformDetector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,5 @@ public bool IsOsxPlatform()
{
return RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
}

public bool IsWindowsPlatform()
{
return RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
}
}
}

0 comments on commit 8f63a8e

Please sign in to comment.