Skip to content

Commit

Permalink
Delete unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
  • Loading branch information
derrickstolee committed Dec 17, 2019
1 parent e8f0a0f commit 47b898d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 347 deletions.
124 changes: 0 additions & 124 deletions Scalar.Common/NetworkStreams/PrefetchPacksDeserializer.cs

This file was deleted.

42 changes: 0 additions & 42 deletions Scalar.Common/Paths.Shared.cs
Original file line number Diff line number Diff line change
@@ -1,51 +1,9 @@
using System;
using System.IO;
using System.Linq;

namespace Scalar.Common
{
public static class Paths
{
public static string GetRoot(string startingDirectory, string rootName)
{
startingDirectory = startingDirectory.TrimEnd(Path.DirectorySeparatorChar);
DirectoryInfo dirInfo;

try
{
dirInfo = new DirectoryInfo(startingDirectory);
}
catch (Exception)
{
return null;
}

while (dirInfo != null)
{
if (dirInfo.Exists)
{
DirectoryInfo[] dotScalarDirs = new DirectoryInfo[0];

try
{
dotScalarDirs = dirInfo.GetDirectories(rootName);
}
catch (IOException)
{
}

if (dotScalarDirs.Count() == 1)
{
return dirInfo.FullName;
}
}

dirInfo = dirInfo.Parent;
}

return null;
}

public static string ConvertPathToGitFormat(string path)
{
return path.Replace(Path.DirectorySeparatorChar, ScalarConstants.GitPathSeparator);
Expand Down
181 changes: 0 additions & 181 deletions Scalar.UnitTests/Prefetch/PrefetchPacksDeserializerTests.cs

This file was deleted.

0 comments on commit 47b898d

Please sign in to comment.