]> gitweb.michael.orlitzky.com - libsvgtiny-pixbuf.git/commitdiff
io-svg.c: drop some commented example code that was never used
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 6 Aug 2023 04:34:06 +0000 (00:34 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 6 Aug 2023 04:34:06 +0000 (00:34 -0400)
io-svg.c

index 5f57689902e9d3830d799f0646f1b74c4425dfff..8bea9ef7ed04a9c2591094059abd686cff8916bb 100644 (file)
--- 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);