From: Michael Orlitzky Date: Sun, 6 Aug 2023 04:34:06 +0000 (-0400) Subject: io-svg.c: drop some commented example code that was never used X-Git-Tag: 0.0.1~23 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=7e812ef9bb9e2c2a0700e7c8faec073df913bfdb;p=libsvgtiny-pixbuf.git io-svg.c: drop some commented example code that was never used --- 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);