scrolled window: Drop dead code

The allocation is never used in this function, so don't bother
getting it.
This commit is contained in:
Matthias Clasen
2015-02-20 08:23:53 -05:00
parent 00f9f1cc6b
commit 4fc98ae345

View File

@ -2464,13 +2464,10 @@ gtk_scrolled_window_allocate_child (GtkScrolledWindow *swindow,
GtkAllocation *relative_allocation)
{
GtkWidget *widget = GTK_WIDGET (swindow), *child;
GtkAllocation allocation;
GtkAllocation child_allocation;
child = gtk_bin_get_child (GTK_BIN (widget));
gtk_widget_get_allocation (widget, &allocation);
gtk_scrolled_window_relative_allocation (widget, relative_allocation);
child_allocation.x = relative_allocation->x;