[gtk+] scrolled window: Drop dead code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] scrolled window: Drop dead code
- Date: Fri, 20 Feb 2015 13:29:17 +0000 (UTC)
commit 4fc98ae34566a8416a345ebdd2a51828f8192632
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Feb 20 08:23:53 2015 -0500
scrolled window: Drop dead code
The allocation is never used in this function, so don't bother
getting it.
gtk/gtkscrolledwindow.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index ad40c08..39dddc9 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]