Commit 286e3f08 authored by Felix Riemann's avatar Felix Riemann Committed by Christian Persch (away until week 30)

Remove now unused or unneeded variables and functions

Fixes compiler warnings when -Wunused-variable and -Wunused-functions
compiler switches are enabled.

Bug #672725.
parent 5b97a8f0
......@@ -314,7 +314,6 @@ static void
rsvg_extra_handler_characters (RsvgSaxHandler * self, const char *ch, int len)
{
RsvgSaxHandlerExtra *z = (RsvgSaxHandlerExtra *) self;
RsvgHandle *ctx = z->ctx;
/* This isn't quite the correct behavior - in theory, any graphics
element may contain a title, desc, or metadata element */
......@@ -417,7 +416,6 @@ static void
rsvg_metadata_handler_start (RsvgSaxHandler * self, const char *name, RsvgPropertyBag * atts)
{
RsvgSaxHandlerMetadata *z = (RsvgSaxHandlerMetadata *) self;
RsvgHandle *ctx = z->ctx;
rsvg_extra_handler_start (self, name, atts);
......@@ -433,7 +431,6 @@ static void
rsvg_metadata_handler_end (RsvgSaxHandler * self, const char *name)
{
RsvgSaxHandlerMetadata *z = (RsvgSaxHandlerMetadata *) self;
RsvgHandle *ctx = z->ctx;
if (strcmp (name, z->name) != 0) {
if (z->string)
......@@ -569,7 +566,6 @@ rsvg_start_xinclude (RsvgHandle * ctx, RsvgPropertyBag * atts)
xmlParserCtxtPtr xml_parser;
xmlParserInputBufferPtr buffer;
xmlParserInputPtr input;
int result;
stream = _rsvg_handle_acquire_stream (ctx, href, NULL, NULL);
if (stream == NULL)
......
......@@ -43,12 +43,6 @@
static const cairo_user_data_key_t surface_pixel_data_key;
static void
rsvg_pixmap_destroy (gchar * pixels, gpointer data)
{
g_free (pixels);
}
static void
_pattern_add_rsvg_color_stops (cairo_pattern_t * pattern,
GPtrArray * stops, guint32 current_color_rgb, guint8 opacity)
......@@ -574,7 +568,6 @@ rsvg_cairo_render_surface (RsvgDrawingCtx *ctx,
int width, height;
double dwidth, dheight;
int j;
RsvgBbox bbox;
if (surface == NULL)
......
......@@ -160,12 +160,9 @@ rsvg_acquire_file_data (const char *filename,
GCancellable *cancellable,
GError **error)
{
GFile *file;
gchar *path, *data;
GInputStream *stream;
gsize len;
char *content_type;
gboolean res;
rsvg_return_val_if_fail (filename != NULL, NULL, error);
g_assert (out_len != NULL);
......@@ -201,7 +198,6 @@ rsvg_acquire_gvfs_stream (const char *uri,
GFile *base, *file;
GFileInputStream *stream;
GError *err = NULL;
gchar *data;
file = g_file_new_for_uri (uri);
......@@ -255,7 +251,6 @@ rsvg_acquire_gvfs_data (const char *uri,
GError **error)
{
GFile *base, *file;
GInputStream *stream;
GError *err;
gchar *data;
gsize len;
......
......@@ -44,12 +44,6 @@
#include "rsvg-cairo.h"
#include "rsvg-cairo-draw.h"
static void
rsvg_pixmap_destroy (gchar * pixels, gpointer data)
{
g_free (pixels);
}
/**
* rsvg_handle_get_pixbuf_sub:
* @handle: An #RsvgHandle
......@@ -72,10 +66,8 @@ rsvg_handle_get_pixbuf_sub (RsvgHandle * handle, const char *id)
{
RsvgDimensionData dimensions;
GdkPixbuf *output = NULL;
guint8 *pixels;
cairo_surface_t *surface;
cairo_t *cr;
int rowstride;
g_return_val_if_fail (handle != NULL, NULL);
......
......@@ -181,14 +181,10 @@ struct _ViewerCbInfo {
static cairo_surface_t *
render_to_surface (ViewerCbInfo *info)
{
RsvgDimensionData dimensions;
int width, height;
cairo_matrix_t matrix;
GdkPixbuf *output = NULL;
guint8 *pixels;
cairo_surface_t *surface;
cairo_t *cr;
int rowstride, minimum;
width = ceil ((double) info->dimensions.width * info->x_zoom);
height = ceil ((double) info->dimensions.height * info->y_zoom);
......@@ -625,8 +621,6 @@ main (int argc, char **argv)
int from_stdin = 0;
ViewerCbInfo info;
struct RsvgSizeCallbackData size_data;
char **args = NULL;
gint n_args = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment