Fossil SCM

Remove a redundant call to manifest_get().

drh 2020-06-01 20:12 trunk
Commit 50ed560c6bf8a97af42907a46ea574ee45a4c7fc9e8caaa9b17bb2c8069534dc
1 file changed -1
--- src/forum.c
+++ src/forum.c
@@ -667,11 +667,10 @@
667667
@ <div id='forum%d(fpid)' class='forumHierRoot%s(zSel)'>
668668
}else{
669669
@ <div id='forum%d(fpid)' class='forumHier%s(zSel)' \
670670
@ style='margin-left: %d((p->nIndent-1)*iIndentScale)ex;'>
671671
}
672
- pPost = manifest_get(fpid, CFTYPE_FORUM, 0);
673672
if( pPost==0 ) continue;
674673
if( pPost->zThreadTitle ){
675674
@ <h1>%h(pPost->zThreadTitle)</h1>
676675
}
677676
zDate = db_text(0, "SELECT datetime(%.17g)", pOPost->rDate);
678677
--- src/forum.c
+++ src/forum.c
@@ -667,11 +667,10 @@
667 @ <div id='forum%d(fpid)' class='forumHierRoot%s(zSel)'>
668 }else{
669 @ <div id='forum%d(fpid)' class='forumHier%s(zSel)' \
670 @ style='margin-left: %d((p->nIndent-1)*iIndentScale)ex;'>
671 }
672 pPost = manifest_get(fpid, CFTYPE_FORUM, 0);
673 if( pPost==0 ) continue;
674 if( pPost->zThreadTitle ){
675 @ <h1>%h(pPost->zThreadTitle)</h1>
676 }
677 zDate = db_text(0, "SELECT datetime(%.17g)", pOPost->rDate);
678
--- src/forum.c
+++ src/forum.c
@@ -667,11 +667,10 @@
667 @ <div id='forum%d(fpid)' class='forumHierRoot%s(zSel)'>
668 }else{
669 @ <div id='forum%d(fpid)' class='forumHier%s(zSel)' \
670 @ style='margin-left: %d((p->nIndent-1)*iIndentScale)ex;'>
671 }
 
672 if( pPost==0 ) continue;
673 if( pPost->zThreadTitle ){
674 @ <h1>%h(pPost->zThreadTitle)</h1>
675 }
676 zDate = db_text(0, "SELECT datetime(%.17g)", pOPost->rDate);
677

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button