From 7e812ef9bb9e2c2a0700e7c8faec073df913bfdb Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 6 Aug 2023 00:34:06 -0400 Subject: [PATCH] io-svg.c: drop some commented example code that was never used --- io-svg.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/io-svg.c b/io-svg.c index 5f57689..8bea9ef 100644 --- a/io-svg.c +++ b/io-svg.c @@ -381,17 +381,6 @@ static void emit_prepared(SvgTinyContext* context, GdkPixbuf* pixbuf) { } -/* -static void emit_size(SvgTinyContext* context, GdkPixbuf* pixbuf) { - int w = gdk_pixbuf_get_width(pixbuf); - int h = gdk_pixbuf_get_height(pixbuf); - if (context->size_func != NULL) { - (*context->size_func)(&w, &h, context->user_data); - } -} -*/ - - static gboolean gdk_pixbuf_stop_load(gpointer data, GError **error) { SvgTinyContext* context = (SvgTinyContext*)data; GdkPixbuf* pixbuf = NULL; @@ -403,7 +392,6 @@ static gboolean gdk_pixbuf_stop_load(gpointer data, GError **error) { &sub_error); if (pixbuf != NULL) { - /*emit_size(context, pixbuf);*/ emit_prepared(context, pixbuf); emit_updated(context, pixbuf); g_object_unref(pixbuf); -- 2.43.2