From 4c92def17fef70c35e578ffb2c5e6acde3b9247d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 29 Mar 2013 15:05:32 +0400 Subject: revert PersistentImgeCache: too slow :) --- Juick/Converters/UriToImageSourceConverter.cs | 31 --------------------------- 1 file changed, 31 deletions(-) delete mode 100644 Juick/Converters/UriToImageSourceConverter.cs (limited to 'Juick/Converters') diff --git a/Juick/Converters/UriToImageSourceConverter.cs b/Juick/Converters/UriToImageSourceConverter.cs deleted file mode 100644 index 4c26254..0000000 --- a/Juick/Converters/UriToImageSourceConverter.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Documents; -using System.Windows.Ink; -using System.Windows.Input; -using System.Windows.Media; -using System.Windows.Media.Animation; -using System.Windows.Shapes; -using System.Windows.Data; -using System.Globalization; -using Kawagoe.Storage; - -namespace Juick.Converters -{ - public class UriToImageSourceConverter : IValueConverter - { - static ImageCache _cache = new PersistentImageCache("avatarsCache"); - public object Convert(object value, Type targetType, object parameter, CultureInfo culture) - { - Uri avatarUri = (Uri)value; - return _cache.Get(avatarUri); - } - - public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) - { - return null; - } - } -} -- cgit v1.2.3