# HG changeset patch # User William Pitcock # Date 1202724326 21600 # Node ID 6c97378391b8363d0a4be9220e4779b6e2d75b4c # Parent 0a9e1d9eae7bd66a038169d25bed495362335b33 Remove unused functions. diff -r 0a9e1d9eae7b -r 6c97378391b8 src/audacious/dock.c --- a/src/audacious/dock.c Mon Feb 11 03:57:30 2008 -0600 +++ b/src/audacious/dock.c Mon Feb 11 04:05:26 2008 -0600 @@ -390,75 +390,6 @@ dock_window_resize(widget, w, new_h, w, h); } -static GList * -resize_move_list(GList * list, GtkWindow * widget, - gint offset_x, gint offset_y) -{ - gint x, y, w, h; - GList *node; - DockedWindow *dw; - - gtk_window_get_position(widget, &x, &y); - gtk_window_get_size(widget, &w, &h); - - - for (node = list; node;) { - gint dx, dy, dwidth, dheight; - dw = node->data; - gtk_window_get_position(dw->w, &dx, &dy); - gtk_window_get_size(dw->w, &dwidth, &dheight); - if (is_docked(x, y, w, h, dx, dy, dwidth, dheight)) { - - list = g_list_remove_link(list, node); - g_list_free_1(node); - node = list = resize_move_list(list, dw->w, offset_x, offset_y); - } - else - node = g_list_next(node); - } - gtk_window_move(widget, x + offset_x, y + offset_y); - return list; -} - -static GList * -resize_calc_offset(GList * list, GtkWindow * widget, - gint offset_x, gint offset_y, - gint * goffset_x, gint * goffset_y) -{ - gint x, y, w, h; - GList *node; - DockedWindow *dw; - - gtk_window_get_position(widget, &x, &y); - gtk_window_get_size(widget, &w, &h); - - - for (node = list; node;) { - gint dx, dy, dwidth, dheight; - dw = node->data; - gtk_window_get_position(dw->w, &dx, &dy); - gtk_window_get_size(dw->w, &dwidth, &dheight); - if (is_docked(x, y, w, h, dx, dy, dwidth, dheight)) { - if (dx + offset_x + dwidth > gdk_screen_width()) { - offset_x -= dx + offset_x + dwidth - gdk_screen_width(); - (*goffset_x) -= dx + offset_x + dwidth - gdk_screen_width(); - } - if (dy + offset_y + dheight > gdk_screen_height()) { - offset_y -= dy + offset_y + dheight - gdk_screen_height(); - (*goffset_y) -= dy + offset_y + dheight - gdk_screen_height(); - } - list = g_list_remove_link(list, node); - g_list_free_1(node); - node = list = - resize_calc_offset(list, dw->w, offset_x, offset_y, - goffset_x, goffset_y); - } - else - node = g_list_next(node); - } - return list; -} - void dock_move_press(GList * window_list, GtkWindow * w, GdkEventButton * event, gboolean move_list)