[spice-common] swcanvas: Remove canvas_create()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nothing calls it in spice-gtk or spice-server

Signed-off-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>
---
 common/sw_canvas.c | 26 --------------------------
 common/sw_canvas.h | 11 -----------
 2 files changed, 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
-- 
2.17.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]