gsk: Drop some unused code

Nobody is using gsk_gpu_download_png_op, and we are going to
refactor the download op code.
This commit is contained in:
Matthias Clasen 2024-08-07 08:39:05 -04:00
parent fd78bd3eaf
commit ffdc8c8f60
2 changed files with 0 additions and 34 deletions

View File

@ -380,32 +380,3 @@ gsk_gpu_download_op (GskGpuFrame *frame,
self->func = func,
self->user_data = user_data;
}
static void
gsk_gpu_download_save_png_cb (gpointer filename,
GdkTexture *texture)
{
gdk_texture_save_to_png (texture, filename);
g_free (filename);
}
void
gsk_gpu_download_png_op (GskGpuFrame *frame,
GskGpuImage *image,
const char *filename_format,
...)
{
va_list args;
char *filename;
va_start (args, filename_format);
filename = g_strdup_vprintf (filename_format, args);
va_end (args);
gsk_gpu_download_op (frame,
image,
FALSE,
gsk_gpu_download_save_png_cb,
filename);
}

View File

@ -13,10 +13,5 @@ void gsk_gpu_download_op (GskGpuF
GskGpuDownloadFunc func,
gpointer user_data);
void gsk_gpu_download_png_op (GskGpuFrame *frame,
GskGpuImage *image,
const char *filename_format,
...) G_GNUC_PRINTF(3, 4);
G_END_DECLS