[scripting] removed unused method + added .gitignore

This commit is contained in:
Adriano Carlos Verona 2017-08-04 16:41:34 -03:00
Родитель 018a68fcc4
Коммит 385ef95435
2 изменённых файлов: 4 добавлений и 17 удалений

4
.gitignore поставляемый Normal file
Просмотреть файл

@ -0,0 +1,4 @@
**/bin/*
**/obj/*
packages/
.vs/

Просмотреть файл

@ -82,7 +82,6 @@ namespace UnityScript2CSharp.Tests
{
Console.WriteLine("Converted files saved to: {0}", saveToFolder);
var unityWorkspaceRoot = GetUnityWorkspaceRoot();
var converter = new UnityScript2CSharpConverter(true);
Action<string, string, int> onScriptConverted = (name, content, unsupportedCount) =>
@ -107,22 +106,6 @@ namespace UnityScript2CSharp.Tests
return converter;
}
private static string GetUnityWorkspaceRoot()
{
var currentFolder = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
var probeStarttingPoint = currentFolder;
while (currentFolder.Length > 0)
{
if (File.Exists(Path.Combine(currentFolder, "build.pl")))
return currentFolder;
currentFolder = Path.GetDirectoryName(currentFolder);
}
throw new Exception($"Unable to resolve workspace root from {probeStarttingPoint}");
}
private static string SavePathFrom(string testName)
{
var sb = new StringBuilder(testName);