[Spice-devel] [common] canvas: canvas_fix_alignment() is unused so remove it.
Francois Gouget
fgouget at codeweavers.com
Tue Apr 19 03:50:22 UTC 2016
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
I don't know if this is right but it is currently necessary to compile
the Spice server.
common/canvas_base.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/common/canvas_base.c b/common/canvas_base.c
index 45dd75f..7f6231b 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -515,23 +515,6 @@ static pixman_image_t *canvas_get_jpeg(CanvasBase *canvas, SpiceImage *image)
return surface;
}
-static void canvas_fix_alignment(uint8_t *bits,
- int stride_encoded, int stride_pixman,
- int height)
-{
- if (stride_pixman > stride_encoded) {
- // Fix the row alignment
- int row;
- uint8_t *dest = bits;
- for (row = height - 1; row > 0; --row) {
- uint32_t *dest_aligned, *dest_misaligned;
- dest_aligned = (uint32_t *)(dest + stride_pixman*row);
- dest_misaligned = (uint32_t*)(dest + stride_encoded*row);
- memmove(dest_aligned, dest_misaligned, stride_encoded);
- }
- }
-}
-
#ifdef USE_LZ4
static pixman_image_t *canvas_get_lz4(CanvasBase *canvas, SpiceImage *image)
{
--
2.8.0.rc3
More information about the Spice-devel
mailing list