Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Jan 18, 2025
1 parent a819a03 commit 9379a3b
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions src/UniGetUI.PackageEngine.Managers.Dotnet/DotNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,49 +114,6 @@ protected override IEnumerable<Package> GetAvailableUpdates_UnSafe()
p.Start();

List<Package> Packages = [];
/*string? line;
bool DashesPassed = false;
while ((line = p.StandardOutput.ReadLine()) is not null)
{
logger.AddToStdOut(line);
if (!DashesPassed)
{
if (line.Contains("----"))
{
DashesPassed = true;
}
}
else
{
string[] elements = Regex.Replace(line, " {2,}", " ").Split(' ');
if (elements.Length < 3)
{
continue;
}
for (int i = 0; i < elements.Length; i++)
{
elements[i] = elements[i].Trim();
}
if (FALSE_PACKAGE_IDS.Contains(elements[0]) || FALSE_PACKAGE_VERSIONS.Contains(elements[1]))
{
continue;
}
if(elements[2].Trim() == "") continue;
Packages.Add(new Package(
CoreTools.FormatAsName(elements[0]),
elements[0],
elements[1],
elements[2],
DefaultSource,
this,
new(PackageScope.Global)
));
}
}*/
string output = p.StandardOutput.ReadToEnd();
logger.AddToStdOut(output);
logger.AddToStdErr(p.StandardError.ReadToEnd());
Expand Down

0 comments on commit 9379a3b

Please sign in to comment.