summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrendererpixbuf.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@gnu.org>2002-01-07 08:02:23 +0000
committerAnders Carlsson <andersca@src.gnome.org>2002-01-07 08:02:23 +0000
commit8ab98f3a58b4e56e3f4ecb49d99a2bf1e21fa91c (patch)
tree0dbe2e3132f97aaea101ed5af69c574b22dd5510 /gtk/gtkcellrendererpixbuf.c
parent1901d4ebd7572fc9e5243345e0436d18e4e52dd1 (diff)
downloadgtk+-8ab98f3a58b4e56e3f4ecb49d99a2bf1e21fa91c.tar.gz
Remove unused pixels and rowstride variables.
2002-01-07 Anders Carlsson <andersca@gnu.org> * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove unused pixels and rowstride variables. (gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
Diffstat (limited to 'gtk/gtkcellrendererpixbuf.c')
-rw-r--r--gtk/gtkcellrendererpixbuf.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 26bf3a1c40..8923410481 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -288,8 +288,6 @@ gtk_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
{
GtkCellRendererPixbuf *cellpixbuf = (GtkCellRendererPixbuf *) cell;
GdkPixbuf *pixbuf;
- guchar *pixels;
- gint rowstride;
GdkRectangle pix_rect;
GdkRectangle draw_rect;
@@ -307,9 +305,6 @@ gtk_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
if (!pixbuf)
return;
- rowstride = gdk_pixbuf_get_rowstride (pixbuf);
- pixels = gdk_pixbuf_get_pixels (pixbuf);
-
gtk_cell_renderer_pixbuf_get_size (cell, widget, cell_area,
&pix_rect.x,
&pix_rect.y,