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
This commit is contained in:
Manish Singh 1998-08-24 18:13:08 +00:00
parent 02a871bc31
commit b93d689290
11 changed files with 71 additions and 3 deletions

View File

@ -1,3 +1,12 @@
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:

View File

@ -1,3 +1,12 @@
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:

View File

@ -1,3 +1,12 @@
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:

View File

@ -1,3 +1,12 @@
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:

View File

@ -1,3 +1,12 @@
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:

View File

@ -1,3 +1,12 @@
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:

View File

@ -1,3 +1,12 @@
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:

View File

@ -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;

View File

@ -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,

View File

@ -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

View File

@ -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);
}