Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Jul 24, 2024
1 parent a03db6b commit 5bf950e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Bonsai.NuGet.Design/PackageViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,19 +204,6 @@ QueryContinuation<IEnumerable<IPackageSearchMetadata>> GetPackageQuery(SourceRep
: new SearchQuery(repository, searchTerm, pageSize, includePrerelease, packageTypes);
}

static Bitmap ResizeImage(Image image, Size newSize)
{
var result = new Bitmap(newSize.Width, newSize.Height);
using (var graphics = Graphics.FromImage(result))
{
graphics.SmoothingMode = SmoothingMode.HighQuality;
graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
graphics.DrawImage(image, 0, 0, newSize.Width, newSize.Height);
}
return result;
}

IObservable<Image> GetPackageIcon(Uri iconUrl)
{
return iconReader.GetAsync(iconUrl).ToObservable();
Expand Down

0 comments on commit 5bf950e

Please sign in to comment.