Skip to content

Commit 9057641

Browse files
arturcicBi0T1N
authored andcommitted
cleanup
1 parent 7ad3ff1 commit 9057641

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/GitVersion.MsBuild/GitVersionTaskExecutor.cs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -108,30 +108,5 @@ public void WriteVersionInfoToBuildLog(WriteVersionInfoToBuildLog task)
108108
gitVersionOutputTool.OutputVariables(versionVariables, configuration.UpdateBuildNumber);
109109
}
110110

111-
private void DeleteTempFiles()
112-
{
113-
var tempPath = AssemblyInfoFileHelper.TempPath;
114-
if (!this.fileSystem.Directory.Exists(tempPath))
115-
{
116-
return;
117-
}
118-
119-
foreach (var file in this.fileSystem.Directory.GetFiles(tempPath))
120-
{
121-
if (this.fileSystem.GetLastDirectoryWrite(file) >= DateTime.Now.AddDays(-1).Ticks)
122-
{
123-
continue;
124-
}
125-
try
126-
{
127-
this.fileSystem.File.Delete(file);
128-
}
129-
catch (UnauthorizedAccessException)
130-
{
131-
//ignore contention
132-
}
133-
}
134-
}
135-
136111
private GitVersionVariables GitVersionVariables(GitVersionTaskBase task) => serializer.FromFile(task.VersionFile);
137112
}

0 commit comments

Comments
 (0)