From: NeilBrown Date: Thu, 26 Nov 2015 23:48:11 +0000 (+1100) Subject: Remove use of point->doc from point fore/back to mark. X-Git-Tag: lca2016~175 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=08a1c8ae285828f543ba39cd972d11fd2b91a369;p=edlib.git Remove use of point->doc from point fore/back to mark. No longer needed. Signed-off-by: NeilBrown --- diff --git a/core-mark.c b/core-mark.c index fb0ac3dc..7799a4f4 100644 --- a/core-mark.c +++ b/core-mark.c @@ -583,7 +583,6 @@ static void point_forward_to_mark(struct point *p, struct mark *m) { struct point *ptmp, *pnear; int i; - struct doc *d = p->doc; pnear = p; ptmp = p; @@ -605,9 +604,9 @@ static void point_forward_to_mark(struct point *p, struct mark *m) struct mark *mnear = NULL; struct tlist_head *tl; - if (!d->views[i].notify) - continue; tl = &pnear->links->lists[i]; + if (tlist_empty(tl)) + continue; tlist_for_each_continue(tl, GRP_HEAD) { struct mark *mtmp; if (TLIST_TYPE(tl) != GRP_MARK) @@ -636,7 +635,6 @@ static void point_forward_to_mark(struct point *p, struct mark *m) static void point_backward_to_mark(struct point *p, struct mark *m) { struct point *ptmp, *pnear; - struct doc *d = p->doc; int i; pnear = p; @@ -659,9 +657,9 @@ static void point_backward_to_mark(struct point *p, struct mark *m) struct mark *mnear = NULL; struct tlist_head *tl; - if (!d->views[i].notify) - continue; tl = &pnear->links->lists[i]; + if (tlist_empty(tl)) + continue; tlist_for_each_continue_reverse(tl, GRP_HEAD) { struct mark *mtmp; if (TLIST_TYPE(tl) != GRP_MARK)