|
7 | 7 | using Microsoft.Extensions.Configuration; |
8 | 8 | using Microsoft.Extensions.DependencyInjection; |
9 | 9 | using Microsoft.Extensions.DependencyInjection.Extensions; |
10 | | -using SixLabors.ImageSharp.Memory; |
11 | 10 | using SixLabors.ImageSharp.Web.Caching; |
12 | 11 | using SixLabors.ImageSharp.Web.Commands; |
13 | 12 | using SixLabors.ImageSharp.Web.Commands.Converters; |
@@ -48,27 +47,6 @@ public static IImageSharpBuilder SetRequestParser(this IImageSharpBuilder builde |
48 | 47 | return builder; |
49 | 48 | } |
50 | 49 |
|
51 | | - /// <summary> |
52 | | - /// Sets the given <see cref="MemoryAllocator"/> adding it to the service collection. |
53 | | - /// </summary> |
54 | | - /// <param name="builder">The core builder.</param> |
55 | | - /// <param name="implementationFactory">The factory method for returning a <see cref="MemoryAllocator"/>.</param> |
56 | | - /// <returns>The <see cref="IImageSharpBuilder"/>.</returns> |
57 | | - [Obsolete("Use ImageSharp.Configuration.MemoryAllocator. This will be removed in a future version.", true)] |
58 | | - public static IImageSharpBuilder SetMemoryAllocator(this IImageSharpBuilder builder, Func<IServiceProvider, MemoryAllocator> implementationFactory) |
59 | | - => builder; |
60 | | - |
61 | | - /// <summary> |
62 | | - /// Sets the given <see cref="MemoryAllocator"/> adding it to the service collection. |
63 | | - /// </summary> |
64 | | - /// <typeparam name="TMemoryAllocator">The type of class implementing <see cref="MemoryAllocator"/>to add.</typeparam> |
65 | | - /// <param name="builder">The core builder.</param> |
66 | | - /// <returns>The <see cref="IImageSharpBuilder"/>.</returns> |
67 | | - [Obsolete("Use ImageSharp.Configuration.MemoryAllocator. This will be removed in a future version.", true)] |
68 | | - public static IImageSharpBuilder SetMemoryAllocator<TMemoryAllocator>(this IImageSharpBuilder builder) |
69 | | - where TMemoryAllocator : MemoryAllocator |
70 | | - => builder; |
71 | | - |
72 | 50 | /// <summary> |
73 | 51 | /// Sets the given <see cref="IImageCache"/> adding it to the service collection. |
74 | 52 | /// </summary> |
|
0 commit comments