From 6d31204bcca42f3c26d6f6b475ffd50c01876eba Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 30 Aug 2013 10:05:32 -0400 Subject: [PATCH] removed dead code --- MediaBrowser.ServerApplication/App.xaml.cs | 76 ---------------------- 1 file changed, 76 deletions(-) diff --git a/MediaBrowser.ServerApplication/App.xaml.cs b/MediaBrowser.ServerApplication/App.xaml.cs index db008c3d97..362dd4bc08 100644 --- a/MediaBrowser.ServerApplication/App.xaml.cs +++ b/MediaBrowser.ServerApplication/App.xaml.cs @@ -291,81 +291,5 @@ namespace MediaBrowser.ServerApplication Dispatcher.Invoke(Shutdown); } - - /// - /// Gets the image. - /// - /// The URI. - /// Image. - /// uri - public Image GetImage(string uri) - { - if (string.IsNullOrEmpty(uri)) - { - throw new ArgumentNullException("uri"); - } - - return GetImage(new Uri(uri)); - } - - /// - /// Gets the image. - /// - /// The URI. - /// Image. - /// uri - public Image GetImage(Uri uri) - { - if (uri == null) - { - throw new ArgumentNullException("uri"); - } - - return new Image { Source = GetBitmapImage(uri) }; - } - - /// - /// Gets the bitmap image. - /// - /// The URI. - /// BitmapImage. - /// uri - public BitmapImage GetBitmapImage(string uri) - { - if (string.IsNullOrEmpty(uri)) - { - throw new ArgumentNullException("uri"); - } - - return GetBitmapImage(new Uri(uri)); - } - - /// - /// Gets the bitmap image. - /// - /// The URI. - /// BitmapImage. - /// uri - public BitmapImage GetBitmapImage(Uri uri) - { - if (uri == null) - { - throw new ArgumentNullException("uri"); - } - - var bitmap = new BitmapImage - { - CreateOptions = BitmapCreateOptions.DelayCreation, - CacheOption = BitmapCacheOption.OnDemand, - UriCachePolicy = new RequestCachePolicy(RequestCacheLevel.CacheIfAvailable) - }; - - bitmap.BeginInit(); - bitmap.UriSource = uri; - bitmap.EndInit(); - - RenderOptions.SetBitmapScalingMode(bitmap, BitmapScalingMode.Fant); - return bitmap; - } } }