Commit b93d6892 authored by Manish Singh's avatar Manish Singh

removed some unused variables

* gdk/gdkrgb.c: removed some unused variables

* gtk/gtkclist.c
* gtk/gtkmain.c: #if 0'd out some unused code

* gtk/gtkobject.c: check for NULL object hash table in gtk_object_debug

-Yosh
parent 02a871bc
Mon Aug 24 11:09:32 PDT 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkrgb.c: removed some unused variables
* gtk/gtkclist.c
* gtk/gtkmain.c: #if 0'd out some unused code
* gtk/gtkobject.c: check for NULL object hash table in gtk_object_debug
Mon Aug 24 02:36:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarg.h:
......
Mon Aug 24 11:09:32 PDT 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkrgb.c: removed some unused variables
* gtk/gtkclist.c
* gtk/gtkmain.c: #if 0'd out some unused code
* gtk/gtkobject.c: check for NULL object hash table in gtk_object_debug
Mon Aug 24 02:36:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarg.h:
......
Mon Aug 24 11:09:32 PDT 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkrgb.c: removed some unused variables
* gtk/gtkclist.c
* gtk/gtkmain.c: #if 0'd out some unused code
* gtk/gtkobject.c: check for NULL object hash table in gtk_object_debug
Mon Aug 24 02:36:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarg.h:
......
Mon Aug 24 11:09:32 PDT 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkrgb.c: removed some unused variables
* gtk/gtkclist.c
* gtk/gtkmain.c: #if 0'd out some unused code
* gtk/gtkobject.c: check for NULL object hash table in gtk_object_debug
Mon Aug 24 02:36:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarg.h:
......
Mon Aug 24 11:09:32 PDT 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkrgb.c: removed some unused variables
* gtk/gtkclist.c
* gtk/gtkmain.c: #if 0'd out some unused code
* gtk/gtkobject.c: check for NULL object hash table in gtk_object_debug
Mon Aug 24 02:36:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarg.h:
......
Mon Aug 24 11:09:32 PDT 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkrgb.c: removed some unused variables
* gtk/gtkclist.c
* gtk/gtkmain.c: #if 0'd out some unused code
* gtk/gtkobject.c: check for NULL object hash table in gtk_object_debug
Mon Aug 24 02:36:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarg.h:
......
Mon Aug 24 11:09:32 PDT 1998 Manish Singh <yosh@gimp.org>
* gdk/gdkrgb.c: removed some unused variables
* gtk/gtkclist.c
* gtk/gtkmain.c: #if 0'd out some unused code
* gtk/gtkobject.c: check for NULL object hash table in gtk_object_debug
Mon Aug 24 02:36:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarg.h:
......
......@@ -2123,7 +2123,6 @@ gdk_rgb_convert_4 (GdkImage *image,
gint r, g, b;
guchar *dmp;
gint dith;
guchar pix0, pix1;
bptr = buf;
bpl = image->bpl;
......
......@@ -2083,6 +2083,7 @@ gtk_clist_row_is_visible (GtkCList * clist,
return GTK_VISIBILITY_FULL;
}
#if 0
static GtkAdjustment*
gtk_clist_get_vadjustment (GtkCList * clist)
{
......@@ -2100,6 +2101,7 @@ gtk_clist_get_hadjustment (GtkCList * clist)
return gtk_range_get_adjustment (GTK_RANGE (clist->hscrollbar));
}
#endif
void
gtk_clist_set_policy (GtkCList * clist,
......
......@@ -116,10 +116,12 @@ static void gtk_handle_idle (void);
static void gtk_handle_timer (void);
static void gtk_propagate_event (GtkWidget *widget,
GdkEvent *event);
#if 0
static void gtk_error (gchar *str);
static void gtk_warning (gchar *str);
static void gtk_message (gchar *str);
static void gtk_print (gchar *str);
#endif
static gint gtk_idle_remove_from_list (GList **list,
guint tag,
......@@ -1788,6 +1790,7 @@ gtk_propagate_event (GtkWidget *widget,
}
#if 0
static void
gtk_error (gchar *str)
{
......@@ -1898,4 +1901,4 @@ gtk_print (gchar *str)
if (!GTK_WIDGET_VISIBLE (window))
gtk_widget_show (window);
}
#endif
......@@ -105,7 +105,8 @@ gtk_object_debug_foreach (gpointer key, gpointer value, gpointer user_data)
static void
gtk_object_debug (void)
{
g_hash_table_foreach (living_objs_ht, gtk_object_debug_foreach, NULL);
if (living_objs_ht)
g_hash_table_foreach (living_objs_ht, gtk_object_debug_foreach, NULL);
g_message ("living objects count = %d", obj_count);
}
......
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