Skip to content

Node.js based forum software built for the modern web

lint: remove unused function

Barış Soner Uşaklı26765fe9aac0
diff --git a/src/topics/teaser.js b/src/topics/teaser.js
index 1b8f8f3d37..20c46ff430 100644
--- a/src/topics/teaser.js
+++ b/src/topics/teaser.js
@@ -95,10 +95,6 @@ module.exports = function (Topics) {
return postCountInTopic;
}
- function replaceImgWithAltText(str) {
- return String(str).replace(/<img .*?alt="(.*?)"[^>]*>/gi, '$1');
- }
-
async function handleBlocks(uid, teasers) {
const blockedUids = await user.blocks.list(uid);
if (!blockedUids.length) {