[nautilus] pane: remove useless assertion
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] pane: remove useless assertion
- Date: Mon, 9 Jan 2012 22:26:43 +0000 (UTC)
commit d48669776205bf7732601d73d2fddec5b44a53ef
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jan 9 15:50:13 2012 +0100
pane: remove useless assertion
Now that the slots are direct pages of the GtkNotebook, there's no need
to ensure the slot is in the pane's list, since we already assert on
gtk_notebook_page_num(slot) >= 0.
src/nautilus-window-pane.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window-pane.c b/src/nautilus-window-pane.c
index 418ecc4..4e7a388 100644
--- a/src/nautilus-window-pane.c
+++ b/src/nautilus-window-pane.c
@@ -1043,7 +1043,6 @@ nautilus_window_pane_close_slot (NautilusWindowPane *pane,
g_assert (NAUTILUS_IS_WINDOW_SLOT (slot));
g_assert (NAUTILUS_IS_WINDOW_PANE (slot->pane));
- g_assert (g_list_find (slot->pane->slots, slot) != NULL);
DEBUG ("Closing slot %p", slot);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]