|
1 | | -// Copyright (c) Six Labors and contributors. |
| 1 | +// Copyright (c) Six Labors and contributors. |
2 | 2 | // Licensed under the Apache License, Version 2.0. |
3 | 3 |
|
4 | 4 | using System; |
@@ -153,42 +153,6 @@ internal static Memory<TPixel> GetPixelRowMemory<TPixel>(this Image<TPixel> sour |
153 | 153 | internal static MemoryAllocator GetMemoryAllocator(this IConfigurable source) |
154 | 154 | => GetConfiguration(source).MemoryAllocator; |
155 | 155 |
|
156 | | - /// <summary> |
157 | | - /// Gets the span to the backing buffer. |
158 | | - /// </summary> |
159 | | - /// <typeparam name="TPixel">The type of the pixel.</typeparam> |
160 | | - /// <param name="source">The source.</param> |
161 | | - /// <returns>The span returned from Pixel source</returns> |
162 | | - private static Span<TPixel> GetSpan<TPixel>(IPixelSource<TPixel> source) |
163 | | - where TPixel : struct, IPixel<TPixel> |
164 | | - => source.PixelBuffer.GetSpan(); |
165 | | - |
166 | | - /// <summary> |
167 | | - /// Gets the span to the backing buffer at the given row. |
168 | | - /// </summary> |
169 | | - /// <typeparam name="TPixel">The type of the pixel.</typeparam> |
170 | | - /// <param name="source">The source.</param> |
171 | | - /// <param name="row">The row.</param> |
172 | | - /// <returns> |
173 | | - /// The span returned from Pixel source |
174 | | - /// </returns> |
175 | | - private static Span<TPixel> GetSpan<TPixel>(IPixelSource<TPixel> source, int row) |
176 | | - where TPixel : struct, IPixel<TPixel> |
177 | | - => GetSpan(source.PixelBuffer, row); |
178 | | - |
179 | | - /// <summary> |
180 | | - /// Gets the span to the backing buffer at the given row. |
181 | | - /// </summary> |
182 | | - /// <typeparam name="TPixel">The type of the pixel.</typeparam> |
183 | | - /// <param name="source">The source.</param> |
184 | | - /// <param name="row">The row.</param> |
185 | | - /// <returns> |
186 | | - /// The span returned from Pixel source. |
187 | | - /// </returns> |
188 | | - private static Span<TPixel> GetSpan<TPixel>(Buffer2D<TPixel> source, int row) |
189 | | - where TPixel : struct, IPixel<TPixel> |
190 | | - => source.GetSpan().Slice(row * source.Width, source.Width); |
191 | | - |
192 | 156 | /// <summary> |
193 | 157 | /// Gets the configuration. |
194 | 158 | /// </summary> |
|
0 commit comments