changeset 1139:532f4775e3db

post: remove revalidate-all-posts helper function There is never a reason to invalidate all the posts. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Tue, 13 Nov 2018 16:07:43 -0500
parents 9992fb1b5e6f
children 43c380e42683
files post.h post_index.c
diffstat 2 files changed, 0 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/post.h	Tue Nov 13 16:06:49 2018 -0500
+++ b/post.h	Tue Nov 13 16:07:43 2018 -0500
@@ -86,7 +86,6 @@
 extern void post_refresh(struct post *post);
 extern void post_destroy(struct post *post);
 extern void revalidate_post(void *arg);
-extern void revalidate_all_posts(void *arg);
 extern void load_posts(struct req *req, struct post **posts, int nposts,
 		       bool moreposts);
 extern int load_all_posts(void);
--- a/post_index.c	Tue Nov 13 16:06:49 2018 -0500
+++ b/post_index.c	Tue Nov 13 16:07:43 2018 -0500
@@ -486,16 +486,6 @@
 	return ret;
 }
 
-void revalidate_all_posts(void *arg)
-{
-	struct post_global_index_entry *cur;
-
-	MXLOCK(&index_lock);
-	rb_for_each(&index_global, cur)
-		revalidate_post(cur->post);
-	MXUNLOCK(&index_lock);
-}
-
 void index_for_each_tag(int (*init)(void *, unsigned long),
 			void (*step)(void *, struct str *, unsigned long,
 				     unsigned long, unsigned long),