[gnome-builder] pnl: remove dead code
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] pnl: remove dead code
- Date: Thu, 28 Apr 2016 06:52:50 +0000 (UTC)
commit 81f4502dc4693402b4ac61ac565f83731dba54dd
Author: Christian Hergert <chergert redhat com>
Date: Wed Apr 27 23:43:55 2016 -0700
pnl: remove dead code
contrib/pnl/pnl-dock-bin.c | 38 --------------------------------------
1 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/contrib/pnl/pnl-dock-bin.c b/contrib/pnl/pnl-dock-bin.c
index 16669d4..ef38392 100644
--- a/contrib/pnl/pnl-dock-bin.c
+++ b/contrib/pnl/pnl-dock-bin.c
@@ -190,44 +190,6 @@ pnl_dock_bin_get_child (PnlDockBin *self,
return NULL;
}
-#if 0
-static PnlDockBinChild *
-pnl_dock_bin_get_child_at_coordinates (PnlDockBin *self,
- gint x,
- gint y)
-{
- PnlDockBinPrivate *priv = pnl_dock_bin_get_instance_private (self);
- GtkAllocation our_alloc;
- guint i;
-
- g_assert (PNL_IS_DOCK_BIN (self));
-
- gtk_widget_get_allocation (GTK_WIDGET (self), &our_alloc);
-
- for (i = 0; i < G_N_ELEMENTS (priv->children); i++)
- {
- PnlDockBinChild *child = &priv->children [i];
- GtkAllocation alloc;
-
- if (child->widget == NULL)
- continue;
-
- gtk_widget_get_allocation (child->widget, &alloc);
-
- alloc.x -= our_alloc.x;
- alloc.y -= our_alloc.y;
-
- if (x >= alloc.x &&
- x <= alloc.x + alloc.width &&
- y >= alloc.y &&
- y <= alloc.y + alloc.height)
- return child;
- }
-
- return NULL;
-}
-#endif
-
static PnlDockBinChild *
pnl_dock_bin_get_child_typed (PnlDockBin *self,
PnlDockBinChildType type)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]