Remove unused function readPostsDelayed

This commit is contained in:
Raymonzut
2020-05-14 20:18:22 +02:00
parent 1ed4ba3a4a
commit e8139ef878
-4
View File
@@ -10,10 +10,6 @@ let posts = readPosts();
setInterval(() => posts = readPosts(), 1000 * 60 * 60)
function readPostsDelayed() {
return new Promise(setTimeout, 1000).then(posts = readPosts())
}
function readPosts() {
console.warn("reading all posts")
const files = fs.readdirSync(posts_dir)