diff options
Diffstat (limited to 'widgets/table/e-tree-sorted.c')
-rw-r--r-- | widgets/table/e-tree-sorted.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/widgets/table/e-tree-sorted.c b/widgets/table/e-tree-sorted.c index 3d70e019e4..ddea067b91 100644 --- a/widgets/table/e-tree-sorted.c +++ b/widgets/table/e-tree-sorted.c @@ -124,13 +124,17 @@ ets_insert_idle(ETreeSorted *ets) /* Helper functions */ +#define CHECK_AROUND_LAST_ACCESS + static inline ETreeSortedPath * check_last_access (ETreeSorted *ets, ETreePath corresponding) { +#ifdef CHECK_AROUND_LAST_ACCESS ETreeSortedPath *parent; int end; int start; int i; +#endif if (ets->priv->last_access == NULL) return NULL; @@ -140,6 +144,7 @@ check_last_access (ETreeSorted *ets, ETreePath corresponding) return ets->priv->last_access; } +#ifdef CHECK_AROUND_LAST_ACCESS parent = ets->priv->last_access->parent; if (parent && parent->children) { i = ets->priv->last_access->position; @@ -160,6 +165,7 @@ check_last_access (ETreeSorted *ets, ETreePath corresponding) } } } +#endif return NULL; } |