summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2018-07-03 16:10:23 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2018-07-04 10:04:02 +0200
commit3def5a84480774c95833a339af17efc290e94c61 (patch)
tree53264626a3b1ee74598aa3b942c5313f1b6c7a05
parentcd932df7a2b5bc0c61d5da78ac8f658226dd74bf (diff)
swcanvas: Remove canvas_create()
Nothing calls it in spice-gtk or spice-server Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
-rw-r--r--common/sw_canvas.c26
-rw-r--r--common/sw_canvas.h11
2 files changed, 0 insertions, 37 deletions
diff --git a/common/sw_canvas.c b/common/sw_canvas.c
index c41edb1..c5528c2 100644
--- a/common/sw_canvas.c
+++ b/common/sw_canvas.c
@@ -1222,32 +1222,6 @@ static SpiceCanvas *canvas_create_common(pixman_image_t *image,
return (SpiceCanvas *)canvas;
}
-SpiceCanvas *canvas_create(int width, int height, uint32_t format,
- SpiceImageCache *bits_cache,
-#ifdef SW_CANVAS_CACHE
- SpicePaletteCache *palette_cache,
-#endif
- SpiceImageSurfaces *surfaces,
- SpiceGlzDecoder *glz_decoder,
- SpiceJpegDecoder *jpeg_decoder,
- SpiceZlibDecoder *zlib_decoder)
-{
- pixman_image_t *image;
-
- image = pixman_image_create_bits(spice_surface_format_to_pixman(format),
- width, height, NULL, 0);
-
- return canvas_create_common(image, format,
- bits_cache,
-#ifdef SW_CANVAS_CACHE
- palette_cache,
-#endif
- surfaces,
- glz_decoder,
- jpeg_decoder,
- zlib_decoder);
-}
-
SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format,
uint8_t *data, int stride,
SpiceImageCache *bits_cache,
diff --git a/common/sw_canvas.h b/common/sw_canvas.h
index aa9e46f..31f0644 100644
--- a/common/sw_canvas.h
+++ b/common/sw_canvas.h
@@ -29,17 +29,6 @@
SPICE_BEGIN_DECLS
-SpiceCanvas *canvas_create(int width, int height, uint32_t format
- , SpiceImageCache *bits_cache
-#ifdef SW_CANVAS_CACHE
- , SpicePaletteCache *palette_cache
-#endif
- , SpiceImageSurfaces *surfaces
- , SpiceGlzDecoder *glz_decoder
- , SpiceJpegDecoder *jpeg_decoder
- , SpiceZlibDecoder *zlib_decoder
- );
-
SpiceCanvas *canvas_create_for_data(int width, int height, uint32_t format, uint8_t *data, int stride
, SpiceImageCache *bits_cache
#ifdef SW_CANVAS_CACHE