summaryrefslogtreecommitdiff
path: root/file
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-15 14:54:24 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-15 14:54:24 (GMT)
commit75a30655bf3a87f62d55e8746e3253005c5cec77 (patch)
tree9b8493f6e7d24b9356173509ba286344c86d32f1 /file
parentec01abbbad950587c89c540737ff08ff820c968c (diff)
downloadeeshow-75a30655bf3a87f62d55e8746e3253005c5cec77.zip
eeshow-75a30655bf3a87f62d55e8746e3253005c5cec77.tar.gz
eeshow-75a30655bf3a87f62d55e8746e3253005c5cec77.tar.bz2
file/git-hist.c: delete obsolete (and broken) iteration functions
Diffstat (limited to 'file')
-rw-r--r--file/git-hist.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/file/git-hist.c b/file/git-hist.c
index 62d1f01..0d17ff8 100644
--- a/file/git-hist.c
+++ b/file/git-hist.c
@@ -408,47 +408,6 @@ fail:
}
-/* ----- Iteration (obsolete) ---------------------------------------------- */
-
-
-#if 0
-
-/*
- * We use the "seen" counter to make sure we only show a commit after all newer
- * commits have been shown. We could accomplish the same by reordering the
- * h->older array of all ancestors each time we find a branch, but this works
- * just as well, has only the small disadvantage that we're modifying the
- * history entries during traversal, and is simpler.
- */
-
-static void hist_iterate_recurse(struct vcs_hist *h,
- void (*fn)(void *user, struct vcs_hist *h), void *user)
-{
- unsigned i;
-
- fn(user, h);
- for (i = 0; i != h->n_older; i++)
- if (++h->older[i]->seen == h->older[i]->n_newer)
- hist_iterate_recurse(h->older[i], fn, user);
-}
-
-
-static void hist_iterate(struct vcs_history *history,
- void (*fn)(void *user, struct vcs_hist *h), void *user)
-{
- struct vcs_hist *h, **head;
-
- for (h = history->history; h; h = h->next)
- h->seen = 0;
- for (head = history->heads; head != history->heads + history->n_heads;
- head++)
- if (!(*head)->n_newer)
- hist_iterate_recurse(*head, fn, user);
-}
-
-#endif
-
-
/* ----- Sorted commit history --------------------------------------------- */