Skip to content

Commit 7e7c1f5

Browse files
committed
Drop dead code
1 parent 7202df7 commit 7e7c1f5

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

LibGit2Sharp.Tests/ConfigurationFixture.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,6 @@ private static void AssertValueInLocalConfigFile(string repoPath, string regex)
1414
AssertValueInConfigFile(configFilePath, regex);
1515
}
1616

17-
private static string RetrieveGlobalConfigLocation()
18-
{
19-
string[] variables = { "HOME", "USERPROFILE", };
20-
21-
foreach (string variable in variables)
22-
{
23-
string potentialLocation = Environment.GetEnvironmentVariable(variable);
24-
if (string.IsNullOrEmpty(potentialLocation))
25-
{
26-
continue;
27-
}
28-
29-
string potentialPath = Path.Combine(potentialLocation, ".gitconfig");
30-
31-
if (File.Exists(potentialPath))
32-
{
33-
return potentialPath;
34-
}
35-
}
36-
37-
throw new InvalidOperationException("Unable to determine the location of '.gitconfig' file.");
38-
}
39-
40-
private static void AssertValueInGlobalConfigFile(string regex)
41-
{
42-
string configFilePath = RetrieveGlobalConfigLocation();
43-
AssertValueInConfigFile(configFilePath, regex);
44-
}
45-
4617
[Fact]
4718
public void CanUnsetAnEntryFromTheLocalConfiguration()
4819
{

0 commit comments

Comments
 (0)